Function at 0x404f50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe54
mov eax, dword [0x42fc20]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push 0x400
push 0
lea eax, [ebp - 0x630]
push eax
call fcn.00411980
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
push 0x1ff
lea edx, [ebp - 0x630]
push edx
call fcn.0040f90d
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 0x404fab
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, 0x80
mov esi, 0x434870
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 0x405011
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.0041061c
add esp, 4
mov dword [ebp - 0x21c], eax
push 0x10000
push 0
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.00411980
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.00411980
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.00411980
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x405110
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x405138
lea ecx, [ebp - 0x218]
push ecx
call fcn.00405280
add esp, 4
push 0x42ae68
push 0x103
lea edx, [ebp - 0x218]
push edx
call fcn.0040f97c
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.00404580
add esp, 0x10
test eax, eax
jne 0x405165
jmp 0x40523b
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.00404750
add esp, 0x14
test eax, eax
jne 0x40519c
jmp 0x40523b
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.00404a60
add esp, 0x14
test eax, eax
jne 0x4051cc
jmp 0x40523b
movzx edx, word [ebp - 8]
movzx eax, word [ebp - 0xc]
cmp edx, eax
jne 0x4051e1
cmp dword [ebp - 0xe34], 0
jne 0x4051e5
jmp 0x40523b
mov ecx, dword [ebp - 0x21c]
mov dl, byte [ecx]
mov byte [ebp - 0x221], dl
movzx eax, byte [ebp - 0x221]
test eax, eax
je 0x405202
jmp 0x40523b
push 0x434a70
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.0040f97c
add esp, 0xc
lea edx, [ebp - 0x218]
push edx
lea eax, [ebp - 0x22c]
push eax
call fcn.004052f0
add esp, 8
mov dword [ebp - 0x228], 1
cmp dword [ebp - 0x21c], 0
je 0x405253
mov ecx, dword [ebp - 0x21c]
push ecx
call fcn.004106e6
add esp, 4
lea edx, [ebp - 0x22c]
push edx
call fcn.00404720
add esp, 4
mov eax, dword [ebp - 0x228]
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f8fe
mov esp, ebp
pop ebp
ret