Function at 0x404ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x41a04c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push 0x400
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.00408f20
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x1ff
lea edx, [ebp - 0x630]
push edx
call fcn.00405413
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe38], eax
mov ecx, dword [ebp - 0xe38]
add ecx, 2
mov dword [ebp - 0xe3c], ecx
mov edx, dword [ebp - 0xe38]
mov ax, word [edx]
mov word [ebp - 0xe3e], ax
add dword [ebp - 0xe38], 2
cmp word [ebp - 0xe3e], 0
jne 0x404f2b
mov ecx, dword [ebp - 0xe38]
sub ecx, dword [ebp - 0xe3c]
sar ecx, 1
mov dword [ebp - 0xe44], ecx
mov edx, dword [ebp - 0xe44]
lea edi, [ebp + edx*2 - 0x62e]
mov ecx, pe_nt_image_headers32
mov esi, 0x41ca40
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe48], eax
mov ecx, dword [ebp - 0xe48]
add ecx, 2
mov dword [ebp - 0xe4c], ecx
mov edx, dword [ebp - 0xe48]
mov ax, word [edx]
mov word [ebp - 0xe4e], ax
add dword [ebp - 0xe48], 2
cmp word [ebp - 0xe4e], 0
jne 0x404f91
mov ecx, dword [ebp - 0xe48]
sub ecx, dword [ebp - 0xe4c]
sar ecx, 1
mov dword [ebp - 0xe54], ecx
mov edx, dword [ebp - 0xe54]
lea eax, [edx + edx + 0x202]
mov dword [ebp - 0x220], eax
push 0x10000
call fcn.004060cc
add esp, 4
mov dword [ebp - 0x21c], eax
push 0x10000
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00408f20
add esp, 0xc
mov dword [ebp - 0xe34], 0x10000
mov edx, 0xbba
mov word [ebp - 0xc], dx
xor eax, eax
mov word [ebp - 0xe30], ax
push 0x7fe
push 0
lea ecx, [ebp - 0xe2e]
push ecx
call fcn.00408f20
add esp, 0xc
lea edx, [ebp - 0xe30]
mov dword [ebp - 4], edx
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 0
xor eax, eax
mov word [ebp - 8], ax
xor ecx, ecx
mov word [ebp - 0x218], cx
push 0x206
push 0
lea edx, [ebp - 0x216]
push edx
call fcn.00408f20
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x405090
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x4050b8
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405200
add esp, 4
push 0x4182d8
push 0x103
lea edx, [ebp - 0x218]
push edx
call fcn.00405482
add esp, 0xc
lea eax, [ebp - 0xe30]
push eax
lea ecx, [ebp - 0x22c]
push ecx
movzx edx, word [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00404500
add esp, 0x10
test eax, eax
jne 0x4050e5
jmp 0x4051bb
lea ecx, [ebp - 0xe30]
push ecx
mov edx, dword [ebp - 0x220]
push edx
lea eax, [ebp - 0x630]
push eax
movzx ecx, word [ebp - 0xc]
push ecx
lea edx, [ebp - 0x22c]
push edx
call fcn.004046d0
add esp, 0x14
test eax, eax
jne 0x40511c
jmp 0x4051bb
lea eax, [ebp - 0xe30]
push eax
lea ecx, [ebp - 0xe34]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x22c]
push ecx
call fcn.004049e0
add esp, 0x14
test eax, eax
jne 0x40514c
jmp 0x4051bb
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
cmp edx, eax
jne 0x405161
cmp dword [ebp - 0xe34], 0
jne 0x405165
jmp 0x4051bb
mov ecx, dword [ebp - 0x21c]
mov dl, byte [ecx]
mov byte [ebp - 0x221], dl
movzx eax, byte [ebp - 0x221]
test eax, eax
je 0x405182
jmp 0x4051bb
push 0x41cc40
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405482
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.00405270
add esp, 8
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x21c], 0
je 0x4051d3
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00406196
add esp, 4
lea edx, [ebp - 0x22c]
push edx
call fcn.004046a0
add esp, 4
mov eax, dword [ebp - 0x228]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00405404
mov esp, ebp
pop ebp
ret