Function at 0x418190
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc0
push ebx
xor eax, eax
push ebp
push esi
mov ebp, ecx
mov ecx, dword [esp + 0xd0]
push edi
mov edi, dword [ebp + 0x88]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x18]
push eax
add ecx, 0x24
push ecx
xor ebx, ebx
call fcn.0041af50
mov edx, dword [esp + 0xe0]
mov esi, dword [ebp + 0x5c]
add esp, 8
cmp edi, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
je 0x418243
xor ebx, ebx
push 0x4c
lea eax, [esp + 0x88]
push ebx
push eax
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], ebx
call fcn.00438ee0
push ebx
push ebx
push edi
push esi
call fcn.0043ca8a
push esi
push 1
lea ecx, [esp + 0xa8]
push 0x4c
push ecx
call fcn.0043c9d6
mov eax, dword [esp + 0xb4]
add esp, 0x2c
cmp dword [esp + 0x84], eax
ja 0x418257
mov edi, dword [esp + 0x8c]
test edi, edi
jne 0x4181f0
push esi
call fcn.00439d13
add esp, 4
cmp dword [ebp + 0x18], 0x10
jb 0x4182b6
mov eax, dword [ebp + 4]
jmp 0x4182b9
mov edx, dword [esp + 0xd8]
push 0
lea eax, [eax + eax*2]
lea ecx, [edi + eax*8 + 0x4c]
push 0
push ecx
push esi
mov dword [esp + 0x38], edx
call fcn.0043ca8a
push esi
push 1
lea edx, [esp + 0x30]
push 0x18
push edx
call fcn.00439a5a
push esi
call fcn.004397e6
add dword [esp + 0xac], 1
push 0
push 0
push edi
push esi
call fcn.0043ca8a
push esi
push 1
lea eax, [esp + 0xc0]
push 0x4c
push eax
call fcn.00439a5a
add esp, 0x44
jmp 0x418417
lea eax, [ebp + 4]
push 0x45dfcc
push eax
call fcn.0043b1e8
push 2
push 0
mov esi, eax
push 0
push esi
call fcn.0043ca8a
push esi
call fcn.0043c72f
push 0x4c
lea ecx, [esp + 0x58]
push 0
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
call fcn.00438ee0
push esi
push 1
lea edx, [esp + 0x68]
push 0x4c
push edx
mov dword [esp + 0x70], 0x40
mov dword [esp + 0x74], 1
mov dword [esp + 0x78], 0
call fcn.00439a5a
push esi
call fcn.004397e6
push esi
call fcn.0043c72f
mov eax, dword [esp + 0x78]
xor ecx, ecx
add esp, 0x40
mov ebx, eax
mov edx, 0x18
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041c4b2
mov edi, eax
add esp, 4
test edi, edi
je 0x418366
add ebx, 0xffffffff
js 0x418368
lea eax, [ebx + ebx*2 + 3]
add eax, eax
add eax, eax
add eax, eax
push eax
push 0
push edi
call fcn.00438ee0
add esp, 0xc
jmp 0x418368
xor edi, edi
mov ecx, dword [esp + 0x18]
mov dword [edi], ecx
mov edx, dword [esp + 0x1c]
mov dword [edi + 4], edx
mov eax, dword [esp + 0x20]
mov dword [edi + 8], eax
mov ecx, dword [esp + 0x24]
mov dword [edi + 0xc], ecx
mov edx, dword [esp + 0x28]
mov dword [edi + 0x10], edx
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x14], eax
mov ecx, dword [esp + 0x38]
push esi
push ecx
push 0x18
push edi
call fcn.00439a5a
push esi
call fcn.004397e6
push esi
call fcn.00439d13
push edi
call fcn.0041c4ad
add esp, 0x1c
cmp dword [ebp + 0x18], 0x10
jb 0x4183bf
mov eax, dword [ebp + 4]
jmp 0x4183c2
lea eax, [ebp + 4]
push 0x45dfc8
push eax
call fcn.0043b1e8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
push 0
push ebx
mov esi, eax
push edi
push esi
mov dword [ebp + 0x5c], esi
call fcn.0043ca8a
push esi
push 1
lea edx, [esp + 0x58]
push 0x4c
push edx
call fcn.0043c9d6
mov eax, dword [esp + 0x58]
push 0
push ebx
push edi
push esi
mov dword [esp + 0x78], eax
call fcn.0043ca8a
push esi
push 1
lea ecx, [esp + 0x78]
push 0x4c
push ecx
call fcn.00439a5a
add esp, 0x48
push esi
call fcn.004397e6
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc0
ret 8