Function at 0x404fe8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.0040e950
mov eax, dword [0x416048]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push 0x400
mov dword [ebp - 0x102c], eax
xor ebx, ebx
lea eax, [ebp - 0x814]
mov esi, ecx
push ebx
push eax
mov dword [ebp - 0x1020], esi
call fcn.00408ce0
push esi
lea eax, [ebp - 0x814]
push 0x1ff
push eax
call fcn.00405416
mov eax, esi
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x405040
sub eax, ecx
sar eax, 1
push edi
lea edi, [ebp + eax*2 - 0x812]
mov eax, dword [ebp - 0x1020]
mov ecx, 0x80
mov esi, 0x418a78
rep movsd dword es:[edi], dword [esi]
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x40506c
sub eax, ecx
sar eax, 1
lea eax, [eax + eax + 0x202]
mov esi, 0x10000
push esi
mov dword [ebp - 0x1030], eax
call fcn.00405ecd
push esi
push ebx
push eax
mov dword [ebp - 0x1024], eax
call fcn.00408ce0
xor eax, eax
push 0x7fe
mov word [ebp - 0x1014], ax
lea eax, [ebp - 0x1012]
push ebx
push eax
mov dword [ebp - 0x1028], esi
call fcn.00408ce0
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push ebx
push eax
mov dword [ebp - 0x101c], ebx
mov dword [ebp - 0x1020], ebx
mov dword [ebp - 0x1018], ebx
call fcn.00408ce0
add esp, 0x28
cmp dword [ebp + 0x10], ebx
je 0x40510b
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x40515f
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x414]
push 0x5c
push eax
call fcn.00405dc3
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00405416
push 0x4148c4
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004053a1
add esp, 0x20
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x102c]
lea ecx, [ebp - 0x1014]
lea esi, [ebp - 0x101c]
call fcn.004049ab
pop ecx
test eax, eax
je 0x405258
push dword [ebp - 0x1030]
lea eax, [ebp - 0x814]
push eax
mov esi, 0xbba
push esi
lea ecx, [ebp - 0x1014]
lea edx, [ebp - 0x101c]
call fcn.00404a92
add esp, 0xc
test eax, eax
je 0x405258
push dword [ebp - 0x1024]
lea eax, [ebp - 0x1018]
push eax
lea edx, [ebp - 0x1014]
lea ebx, [ebp - 0x1028]
lea ecx, [ebp - 0x101c]
call fcn.00404c6e
pop ecx
pop ecx
test eax, eax
je 0x405256
cmp word [ebp - 0x1018], si
jne 0x405256
cmp dword [ebp - 0x1028], 0
je 0x405256
mov eax, dword [ebp - 0x1024]
cmp byte [eax], 0
jne 0x405256
push 0x418c78
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004053a1
and dword [ebp - 0x1018], 0
push 0x41494c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x1018]
push eax
call fcn.004056c3
add esp, 0x18
cmp dword [ebp - 0x1018], 0
je 0x40524c
lea eax, [ebp - 0x1018]
push eax
lea edi, [ebp - 0x101c]
call fcn.00405295
pop ecx
mov dword [ebp - 0x1020], 1
xor ebx, ebx
pop edi
cmp dword [ebp - 0x1024], ebx
je 0x40526d
push dword [ebp - 0x1024]
call fcn.00405f61
pop ecx
cmp dword [ebp - 0x101c], ebx
pop esi
pop ebx
je 0x405283
push dword [ebp - 0x101c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x1020]
xor ecx, ebp
call fcn.00405392
leave
ret