Function at 0x21046dd2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x434]
cmp dword [eax], 0
je 0x21046e3c
mov ecx, dword [ebp - 0x434]
cmp dword [ecx + 4], 0
je 0x21046e3c
mov dword [ebp - 0x438], 1
jmp 0x21046e46
mov dword [ebp - 0x438], 0
cmp dword [ebp - 0x438], 0
jne 0x21046e56
xor eax, eax
jmp 0x21047099
lea edx, [ebp - 0x18]
push edx
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x21046e69
jmp 0x21047094
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetDesktopFolder]
test eax, eax
je 0x21046e7c
jmp 0x2104708f
lea ecx, [ebp - 0x20]
push ecx
push 4
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x21046e93
jmp 0x2104708a
lea edx, [ebp - 4]
push edx
push 0x210765d0
push 0
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 8]
push eax
call dword [edx + 0x14]
test eax, eax
je 0x21046eb7
jmp 0x21047085
lea ecx, [ebp - 0x14]
push ecx
push 0x40
push 0
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x10]
test eax, eax
je 0x21046ed4
jmp 0x21047080
push 0
lea edx, [ebp - 0x1c]
push edx
push 1
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 0xc]
test eax, eax
jne 0x21046ff7
lea eax, [ebp - 0x128]
push eax
push 0x2000
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
push ecx
call dword [eax + 0x2c]
test eax, eax
jne 0x21046fdb
push 0x100
lea edx, [ebp - 0x228]
push edx
lea eax, [ebp - 0x128]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.21047616
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x228]
push ecx
call fcn.21053d00
add esp, 8
test eax, eax
jne 0x21046fdb
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.210474f4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x21046f6e
jmp 0x2104707b
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x434]
mov eax, dword [edx]
mov edx, dword [eax]
push ecx
call dword [edx + 0x14]
test eax, eax
je 0x21046f91
jmp 0x21047076
push 0
mov eax, dword [ebp + 8]
push eax
push 0x104
lea ecx, [ebp - 0x430]
push ecx
call fcn.2100318b
push 1
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 0x434]
mov eax, dword [edx + 4]
mov edx, dword [eax]
push ecx
call dword [edx + 0x18]
test eax, eax
je 0x21046fd2
jmp 0x21047074
mov dword [ebp - 0xc], 1
jmp 0x21046ff7
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0x14]
mov dword [ebp - 0x1c], 0
jmp 0x21046ed4
cmp dword [ebp - 0x10], 0
je 0x2104700d
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [eax + 0x14]
cmp dword [ebp - 0x1c], 0
je 0x21047023
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
push edx
call dword [ecx + 0x14]
cmp dword [ebp - 0x14], 0
je 0x21047035
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x14]
push edx
call dword [ecx + 8]
cmp dword [ebp - 4], 0
je 0x21047047
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
call dword [ecx + 8]
cmp dword [ebp - 0x20], 0
je 0x2104705d
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 0x14]
cmp dword [ebp - 0x18], 0
je 0x2104706f
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x18]
push eax
call dword [edx + 8]
mov eax, dword [ebp - 0xc]
jmp 0x21047099
jmp 0x21046ff7
jmp 0x21046ff7
jmp 0x21046ff7
jmp 0x21046ff7
jmp 0x21046ff7
jmp 0x21046ff7
jmp 0x21046ff7
jmp 0x21046ff7
mov esp, ebp
pop ebp
ret 8