Function at 0x4045c0
Capabilities:
Get common file path
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41049a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x290
mov eax, dword [esp + 0x2a0]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, dword [esp + 0x2b4]
push 0x70
push eax
mov dword [ebp + 0x70c], eax
mov dword [ebp + 0x710], ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x1bd0
mov dword [ebp + 0x724], eax
call fcn.00408ed9
add esp, 4
mov dword [esp + 0x10], eax
xor edi, edi
cmp eax, edi
mov dword [esp + 0x2a8], edi
je 0x404642
mov edx, dword [ebp + 0x710]
push 0x1e0
push 0x280
push edx
mov ecx, eax
call fcn.00401ab0
jmp 0x404644
xor eax, eax
or esi, 0xffffffff
push 0x16c8
mov dword [esp + 0x2ac], esi
mov dword [ebp + 0x714], eax
call fcn.00408ed9
add esp, 4
mov dword [esp + 0x10], eax
cmp eax, edi
mov dword [esp + 0x2a8], 1
je 0x40467d
mov ecx, eax
call fcn.00405f20
jmp 0x40467f
xor eax, eax
push 0x20
mov dword [esp + 0x2ac], esi
mov dword [ebp + 0x71c], eax
call fcn.00408ed9
add esp, 4
mov dword [esp + 0x10], eax
mov ebx, 2
cmp eax, edi
mov dword [esp + 0x2a8], ebx
je 0x4046ba
mov ecx, dword [ebp + 0x710]
push ecx
mov ecx, eax
call fcn.00405c50
jmp 0x4046bc
xor eax, eax
mov dword [ebp + 0x30], ebx
lea ebx, [ebp + 0x40]
mov dword [ebp + 0x320], esi
mov dword [ebp + 0x718], eax
mov dword [ebp + 0x324], 0x140
mov dword [ebp + 0x328], 0xf0
mov dword [ebx], edi
mov dword [ebp + 0x44], edi
lea esi, [ebp + 0xac]
lea edx, [ebp + 0x48]
mov dword [esp + 0x10], 5
mov ecx, 0x1f
xor eax, eax
mov edi, esi
mov byte [edx], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
add edx, 0x14
add esi, 0x7c
dec eax
mov dword [esp + 0x10], eax
jne 0x4046f8
mov ecx, 0xc
xor eax, eax
mov edi, ebp
xor edx, edx
rep stosd dword es:[edi], eax
mov dword [ebp + 0x720], edx
lea eax, [ebp + 0x338]
mov ecx, 8
mov dword [eax - 4], edx
mov dword [eax], edx
mov dword [eax + 4], edx
mov dword [eax + 8], edx
add eax, 0x10
dec ecx
jne 0x404735
lea edx, [esp + 0xa0]
push 0x200
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, 0x4134c0
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xa0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xa8]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
mov esi, eax
cmp esi, 0xffffffff
je 0x40481b
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [ebp + 0x334]
push 0x80
push eax
push esi
call edi
lea ecx, [esp + 0x14]
push 0
push ecx
push 4
push ebx
push esi
call edi
mov eax, dword [ebx]
test eax, eax
jle 0x404814
lea eax, [eax + eax*4]
lea edx, [esp + 0x14]
push 0
push edx
shl eax, 2
push eax
lea eax, [ebp + 0x48]
push eax
push esi
call edi
mov ebx, dword [ebx]
lea ecx, [esp + 0x14]
mov edx, ebx
push 0
shl edx, 5
sub edx, ebx
push ecx
shl edx, 2
lea eax, [ebp + 0xac]
push edx
push eax
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x2a0]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x29c
ret 8