Function at 0x41a970
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.0041d5a0
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 0x41aa23
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.0043a0d0
push ebx
push ebx
push edi
push esi
call fcn.0043f42f
push esi
push 1
lea ecx, [esp + 0xa8]
push 0x4c
push ecx
call fcn.0043f37b
mov eax, dword [esp + 0xb4]
add esp, 0x2c
cmp dword [esp + 0x84], eax
ja 0x41aa37
mov edi, dword [esp + 0x8c]
test edi, edi
jne 0x41a9d0
push esi
call fcn.0043c765
add esp, 4
cmp dword [ebp + 0x18], 0x10
jb 0x41aa96
mov eax, dword [ebp + 4]
jmp 0x41aa99
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.0043f42f
push esi
push 1
lea edx, [esp + 0x30]
push 0x18
push edx
call fcn.0043c4b8
push esi
call fcn.0043c1ff
add dword [esp + 0xac], 1
push 0
push 0
push edi
push esi
call fcn.0043f42f
push esi
push 1
lea eax, [esp + 0xc0]
push 0x4c
push eax
call fcn.0043c4b8
add esp, 0x44
jmp 0x41abf7
lea eax, [ebp + 4]
push 0x460480
push eax
call fcn.0043df8b
push 2
push 0
mov esi, eax
push 0
push esi
call fcn.0043f42f
push esi
call fcn.0043f095
push 0x4c
lea ecx, [esp + 0x58]
push 0
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
call fcn.0043a0d0
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.0043c4b8
push esi
call fcn.0043c1ff
push esi
call fcn.0043f095
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.0041d9d6
mov edi, eax
add esp, 4
test edi, edi
je 0x41ab46
add ebx, 0xffffffff
js 0x41ab48
lea eax, [ebx + ebx*2 + 3]
add eax, eax
add eax, eax
add eax, eax
push eax
push 0
push edi
call fcn.0043a0d0
add esp, 0xc
jmp 0x41ab48
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.0043c4b8
push esi
call fcn.0043c1ff
push esi
call fcn.0043c765
push edi
call fcn.0041d9db
add esp, 0x1c
cmp dword [ebp + 0x18], 0x10
jb 0x41ab9f
mov eax, dword [ebp + 4]
jmp 0x41aba2
lea eax, [ebp + 4]
push 0x46047c
push eax
call fcn.0043df8b
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.0043f42f
push esi
push 1
lea edx, [esp + 0x58]
push 0x4c
push edx
call fcn.0043f37b
mov eax, dword [esp + 0x58]
push 0
push ebx
push edi
push esi
mov dword [esp + 0x78], eax
call fcn.0043f42f
push esi
push 1
lea ecx, [esp + 0x78]
push 0x4c
push ecx
call fcn.0043c4b8
add esp, 0x48
push esi
call fcn.0043c1ff
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc0
ret 8