Function at 0x439350
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x485f20
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0x5c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b59f4]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
xor ebx, ebx
push 0xc
mov ebp, ecx
mov esi, 0xf
push str.gamecfg.dll
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], ebx
mov byte [esp + 0x44], bl
call fcn.00406970
mov eax, 0x4b8e60
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4393c0
sub eax, edx
push eax
push 0x4b8e60
lea ecx, [esp + 0x24]
call fcn.00406970
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x5c]
push edx
mov byte [esp + 0x88], 1
call fcn.004392a0
mov eax, dword [esp + 0x40]
add esp, 0xc
cmp eax, 0x10
jb 0x439413
add eax, 1
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.00406020
add esp, 8
mov eax, dword [esp + 0x50]
cmp eax, 0x10
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
jb 0x439439
mov ecx, dword [esp + 0x3c]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
cmp dword [esp + 0x6c], 0x10
mov eax, dword [esp + 0x58]
jae 0x439448
lea eax, [esp + 0x58]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439489
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
jb 0x4395b4
mov edx, dword [esp + 0x58]
add eax, 1
push eax
push edx
call fcn.00406020
add esp, 8
jmp 0x4395b4
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [esp + 0x24]
push ecx
push esi
call edi
mov eax, dword [esp + 0x18]
cmp eax, 1
jne 0x4394bb
push ebx
lea edx, [esp + 0x18]
push edx
push 0x10
add ebp, 0x188
jmp 0x43957b
cmp eax, 4
jae 0x4395a4
push ebx
lea eax, [esp + 0x18]
push eax
push 4
lea ecx, [ebp + 0x188]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 4
lea eax, [ebp + 0x18c]
push eax
push esi
call edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 4
lea edx, [ebp + 0x190]
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [ebp + 0x194]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [ebp + 0x195]
push eax
push esi
call edi
push ebx
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [ebp + 0x196]
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
lea ecx, [ebp + 0x197]
push ecx
push esi
call edi
push ebx
lea edx, [esp + 0x18]
push edx
push 1
lea eax, [ebp + 0x198]
push eax
push esi
call edi
cmp dword [esp + 0x18], 3
jne 0x43957f
push ebx
lea ecx, [esp + 0x18]
push ecx
push 1
lea edx, [ebp + 0x199]
push edx
push esi
call edi
push ebx
lea eax, [esp + 0x18]
push eax
push 1
add ebp, 0x19a
push ebp
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x6c]
cmp eax, 0x10
jb 0x4395a0
mov ecx, dword [esp + 0x58]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
mov al, 1
jmp 0x4395b6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x54]
call fcn.00406bf0
xor al, al
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x5c]
xor ecx, esp
call fcn.0046fe25
add esp, 0x6c
ret