Function at 0x47d630
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c3aeb
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x664e94]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov ax, word [0x5f52dc]
mov word [ebp - 0x1c], ax
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x10]
call fcn.0040141e
mov dword [ebp - 4], 0
mov byte [ebp - 0x15], 1
cmp dword [ebp + 0xc], 0
je 0x47d6d2
cmp dword [ebp + 0xc], 0
jne 0x47d697
mov dword [ebp - 0x28], 0
jmp 0x47d6a6
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0058f15d
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401216
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0047d4a0
add esp, 4
cmp eax, dword [ebp + 0x10]
sbb eax, eax
neg eax
mov byte [ebp - 0x15], al
movzx ecx, byte [ebp - 0x15]
test ecx, ecx
je 0x47d7ab
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x47d71d
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.004039d7
mov eax, dword [ebp - 0x24]
or eax, 1
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401443
mov eax, dword [ebp + 8]
jmp 0x47d87b
mov ecx, dword [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x10]
call fcn.004011e7
push eax
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.0047e1e0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.0047d4a0
add esp, 4
cmp eax, dword [ebp + 0x10]
jae 0x47d7ab
lea edx, [ebp - 0x10]
push edx
call fcn.0047d890
add esp, 4
movzx eax, al
test eax, eax
je 0x47d77f
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call fcn.0047d4a0
add esp, 4
cmp eax, dword [ebp + 0x10]
jae 0x47d7ab
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.004039d7
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401443
mov eax, dword [ebp + 8]
jmp 0x47d87b
call fcn.00496dcd
push eax
lea ecx, [ebp - 0x14]
call fcn.0040141e
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x64], edx
push 0x104
lea ecx, [ebp - 0x14]
call fcn.00401211
push eax
push 0
push 0x5f52e0
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x47d81b
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004039d7
mov edx, dword [ebp - 0x24]
or edx, 1
mov dword [ebp - 0x24], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401443
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401443
mov eax, dword [ebp + 8]
jmp 0x47d87b
push 0xffffffffffffffff
lea ecx, [ebp - 0x14]
call fcn.0047e1e0
mov eax, dword [ebp - 0x14]
sub eax, 0x10
mov dword [ebp - 0x88], eax
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.00401c6c
add esp, 4
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
add edx, 0x10
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov ecx, dword [ebp - 0x24]
or ecx, 1
mov dword [ebp - 0x24], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00401443
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00401443
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret