Function at 0x473e50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48946b
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4a1b04], 0
jne 0x4741be
push 0x1a
mov dword [0x4a1b0c], 4
mov esi, 0xc
mov dword [ebp - 0x228], 0
call fcn.004759ee
add esp, 4
mov dword [ebp - 0x224], eax
push 0xffffffffffffffff
push str.explorer.exe
push 0xd
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.0047b6a2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x224]
call fcn.00472c30
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x473f05
push 2
push eax
call fcn.004759e0
add esp, 8
lea eax, [ebp - 0x21c]
push eax
test esi, esi
je 0x473f86
push 0
push esi
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x473ffb
push 8
call fcn.00475618
add esp, 4
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 9
push ecx
mov ecx, eax
call fcn.0046e290
push str.Temp
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
mov esi, eax
call fcn.0046e200
push eax
mov ecx, esi
mov dword [ebp - 4], 0xa
call fcn.0046efb0
lea ecx, [ebp - 0x224]
mov dword [ebp - 4], 0xffffffff
call fcn.0046e490
jmp 0x473fc3
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x473ffb
push 8
call fcn.00475618
add esp, 4
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x21c]
mov dword [ebp - 4], 0xb
push ecx
mov ecx, eax
call fcn.0046e290
mov esi, eax
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x473ffb
push esi
mov ecx, 0x4a1b28
call fcn.0046ed80
mov eax, dword [esi]
test eax, eax
je 0x473fe9
push 2
push eax
call fcn.004759e0
add esp, 8
mov dword [esi], 0
push 8
push esi
mov dword [esi + 4], 0
call fcn.004759e0
add esp, 8
push 0x4a07d0
mov ecx, 0x4a1b20
call fcn.0046ed80
mov dword [ebp - 0x224], 0
mov dword [ebp - 4], 0x10
xor ecx, ecx
mov eax, dword [0x4a1b2c]
mov edx, 2
inc eax
mov dword [ebp - 0x220], 0
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004759ee
mov ecx, eax
add esp, 4
mov dword [ebp - 0x224], ecx
test ecx, ecx
je 0x474076
mov eax, dword [0x4a1b2c]
mov dword [ebp - 0x220], eax
test eax, eax
je 0x474076
lea eax, [eax*2 + 2]
push eax
push dword [0x4a1b28]
push ecx
call fcn.00478a50
add esp, 0xc
push 0xa
mov dword [ebp - 0x228], 0
mov esi, 4
call fcn.004759ee
add esp, 4
mov edi, eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], edi
push 0xffffffffffffffff
push str.gm.
push 5
push edi
push eax
call fcn.0047b6a2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x11
push eax
lea ecx, [ebp - 0x224]
call fcn.0046efb0
mov byte [ebp - 4], 0x10
test edi, edi
je 0x4740e6
push 2
push edi
call fcn.004759e0
add esp, 8
push 0x4a07d0
lea ecx, [ebp - 0x224]
call fcn.0046efb0
push 0xa
mov dword [ebp - 0x228], 0
mov esi, 4
call fcn.004759ee
add esp, 4
mov edi, eax
lea eax, [ebp - 0x228]
mov dword [ebp - 0x230], edi
push 0xffffffffffffffff
push 0x49b968
push 5
push edi
push eax
call fcn.0047b6a2
xor ecx, ecx
add esp, 0x14
test eax, eax
cmovne esi, ecx
mov dword [ebp - 0x22c], esi
lea eax, [ebp - 0x230]
mov byte [ebp - 4], 0x12
push eax
lea ecx, [ebp - 0x224]
call fcn.0046efb0
mov byte [ebp - 4], 0x10
test edi, edi
je 0x474166
push 2
push edi
call fcn.004759e0
add esp, 8
xor dl, dl
lea ecx, [ebp - 0x224]
call fcn.00474950
push 0x24
mov esi, eax
call fcn.00475618
add esp, 4
mov dword [ebp - 0x22c], eax
mov ecx, eax
push esi
call fcn.004737a0
mov esi, eax
lea eax, [ebp - 0x224]
push eax
mov ecx, esi
call fcn.0046ed80
push ecx
push esi
mov ecx, 0x4a1b30
call fcn.0046e130
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x4741be
push 2
push eax
call fcn.004759e0
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0047540c
mov esp, ebp
pop ebp
ret