Function at 0x420b30
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4b29c2
mov eax, dword fs:[0]
push eax
sub esp, 0x5bc
mov eax, dword [0x4f4930]
xor eax, esp
mov dword [esp + 0x5b8], eax
push esi
push edi
mov eax, dword [0x4f4930]
xor eax, esp
push eax
lea eax, [esp + 0x5c8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x5d8]
lea ecx, [esp + 0x134]
mov dword [esp + 0xc], eax
call fcn.0041ead0
mov dword [esp + 0x5d0], 0
mov ecx, 0x105
lea esi, [esp + 0x13c]
mov dword [esp + 0x254], 0x105
call fcn.0041f470
cmp byte [esp + 0x250], 0
lea eax, [esp + 0x140]
jne 0x420bbf
mov eax, dword [esp + 0x13c]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
add eax, 4
push eax
push 0
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x420cc7
xor eax, eax
cmp dword [esp + 0x254], eax
je 0x420bed
mov dword [esp + 0x254], eax
mov ecx, 1
lea esi, [esp + 0x13c]
mov dword [esp + 0x138], eax
call fcn.0041f470
cmp byte [esp + 0x250], 0
lea eax, [esp + 0x140]
jne 0x420c1d
mov eax, dword [esp + 0x13c]
xor ecx, ecx
mov word [eax + 4], cx
mov ecx, 0x105
lea esi, [esp + 0x13c]
mov dword [esp + 0x254], 0x105
call fcn.0041f470
cmp byte [esp + 0x250], 0
lea eax, [esp + 0x140]
jne 0x420c57
mov eax, dword [esp + 0x13c]
add eax, 4
push eax
push 1
push 0
push 0x1a
push 0
call edi
test eax, eax
je 0x420cc7
lea ecx, [esp + 0x134]
call fcn.0041ecb0
mov ecx, ebx
call fcn.0041a480
push 0x4d3d68
push 0x4d4204
mov edx, eax
call fcn.0041f080
add esp, 8
cmp byte [esp + 0x250], 0
mov dword [esp + 0x134], 0x4d4d70
jne 0x420cc0
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x140]
cmp eax, edx
je 0x420cc0
push eax
call fcn.00470027
add esp, 4
xor al, al
jmp 0x420ef1
lea edi, [esp + 0x134]
call fcn.0041ef10
cmp byte [esp + 0x250], 0
lea esi, [esp + 0x140]
jne 0x420ceb
mov esi, dword [esp + 0x13c]
lea ecx, [esp + 0x258]
call fcn.0041ead0
lea eax, [esi + 4]
lea edx, [esp + 0x258]
call fcn.0041ed00
mov byte [esp + 0x5d0], 2
call fcn.004202f0
mov edi, 0x4d4d70
test al, al
je 0x420e73
lea ecx, [esp + 0x258]
call fcn.0041d6c0
push eax
lea ecx, [esp + 0x380]
call fcn.0041ec10
mov ecx, str.Application_Data
lea eax, [esp + 0x37c]
mov byte [esp + 0x5d0], 3
call fcn.0041ede0
test al, al
je 0x420e47
mov eax, str.AppDataRoaming
lea edx, [esp + 0x37c]
call fcn.0041ed00
lea ecx, [esp + 0x4a0]
call fcn.0041bda0
lea eax, [esp + 0x4a0]
push eax
lea ecx, [esp + 0x25c]
mov byte [esp + 0x5d4], 4
call fcn.0041d710
cmp byte [esp + 0x498], 0
lea esi, [esp + 0x388]
jne 0x420dab
mov esi, dword [esp + 0x384]
lea ecx, [esp + 0x10]
call fcn.0041ead0
lea eax, [esi + 4]
lea edx, [esp + 0x10]
call fcn.0041ed00
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x4a4]
call fcn.0041c430
cmp byte [esp + 0x12c], 0
mov dword [esp + 0x10], edi
jne 0x420df4
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
cmp eax, edx
je 0x420df4
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x5bc], 0
lea eax, [esp + 0x4ac]
jne 0x420e0c
mov eax, dword [esp + 0x4a8]
add eax, 4
lea edx, [esp + 0x258]
call fcn.0041ed00
cmp byte [esp + 0x5bc], 0
mov dword [esp + 0x4a0], edi
jne 0x420e47
mov eax, dword [esp + 0x4a8]
lea ecx, [esp + 0x4ac]
cmp eax, ecx
je 0x420e47
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x498], 0
mov dword [esp + 0x37c], edi
jne 0x420e73
mov eax, dword [esp + 0x384]
lea edx, [esp + 0x388]
cmp eax, edx
je 0x420e73
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x374], 0
lea eax, [esp + 0x264]
jne 0x420e8b
mov eax, dword [esp + 0x260]
mov edx, dword [esp + 0xc]
add eax, 4
call fcn.0041ed00
cmp byte [esp + 0x374], 0
mov dword [esp + 0x258], edi
jne 0x420ec3
mov eax, dword [esp + 0x260]
lea ecx, [esp + 0x264]
cmp eax, ecx
je 0x420ec3
push eax
call fcn.00470027
add esp, 4
cmp byte [esp + 0x250], 0
mov dword [esp + 0x134], edi
jne 0x420eef
mov eax, dword [esp + 0x13c]
lea edx, [esp + 0x140]
cmp eax, edx
je 0x420eef
push eax
call fcn.00470027
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x5c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x5b8]
xor ecx, esp
call fcn.0046fdae
add esp, 0x5c8
ret