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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
cmp dword [ebp + 0x10], 0
je 0x41caa4
mov eax, dword [ebp + 0xc]
push eax
call dword [0x55e52c]
test eax, eax
je 0x41caa4
xor eax, eax
jmp 0x41cd53
mov dword [ebp - 8], 0xa00000
push 0xa00000
call fcn.004dd71e
add esp, 4
mov dword [ebp - 0x84], eax
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x41cad4
xor eax, eax
jmp 0x41cd53
push 0x38
push 0
lea edx, [ebp - 0x48]
push edx
call fcn.0050cad0
add esp, 0xc
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0051246e
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x50], 0
push 0
push 0x40
push 0x8000
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x50]
push edx
call fcn.005110eb
add esp, 0x14
test eax, eax
jne 0x41cd38
push 0x57434c
mov eax, dword [ebp - 0x50]
push eax
call fcn.0051110b
add esp, 8
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
je 0x41cd2c
mov dword [ebp - 0x58], 0
push 0x57419c
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x58]
push edx
call fcn.0050d005
add esp, 0xc
test eax, eax
jne 0x41cd1e
push 0
push 0xa00000
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00514080
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], edx
push 0
push 0xa00000
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00517440
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], edx
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
jmp 0x41cbe3
mov ecx, dword [ebp - 0x80]
add ecx, 1
mov edx, dword [ebp - 0x7c]
adc edx, 0
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x7c], edx
mov eax, dword [ebp - 0x7c]
cmp eax, dword [ebp - 0x64]
jg 0x41cc61
jl 0x41cbf5
mov ecx, dword [ebp - 0x80]
cmp ecx, dword [ebp - 0x68]
jae 0x41cc61
push 1
call dword [0x55e3a4]
call fcn.005359d0
mov edx, dword [ebp - 0x54]
push edx
push 1
push 0xa00000
mov eax, dword [ebp - 4]
push eax
call fcn.0050db98
add esp, 0x10
imul eax, eax, 0xa00000
xor ecx, ecx
add eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
adc edx, ecx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x58]
push eax
push 1
push 0xa00000
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050d1ba
add esp, 0x10
imul eax, eax, 0xa00000
xor edx, edx
add eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
adc ecx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
jmp 0x41cbd1
mov edx, dword [ebp - 0x70]
or edx, dword [ebp - 0x6c]
je 0x41ccd3
mov eax, dword [ebp - 0x54]
push eax
push 1
mov ecx, dword [ebp - 0x70]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.0050db98
add esp, 0x10
xor ecx, ecx
push ecx
push eax
mov edx, dword [ebp - 0x6c]
push edx
mov eax, dword [ebp - 0x70]
push eax
call fcn.00513f00
add eax, dword [ebp - 0x60]
mov ecx, dword [ebp - 0x5c]
adc ecx, edx
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x58]
push edx
push 1
mov eax, dword [ebp - 0x70]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.0050d1ba
add esp, 0x10
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.00513f00
add eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
adc ecx, edx
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x60]
cmp edx, dword [ebp - 0x78]
jne 0x41ccff
mov eax, dword [ebp - 0x5c]
cmp eax, dword [ebp - 0x74]
jne 0x41ccff
mov ecx, dword [ebp - 0x78]
cmp ecx, dword [ebp - 0x10]
jne 0x41ccff
mov edx, dword [ebp - 0x74]
cmp edx, dword [ebp - 0xc]
jne 0x41ccff
mov dword [ebp - 0x8c], 1
jmp 0x41cd09
mov dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x58]
push ecx
call fcn.0050d5e7
add esp, 4
mov edx, dword [ebp - 0x54]
push edx
call fcn.0050d5e7
add esp, 4
jmp 0x41cd38
mov eax, dword [ebp - 0x50]
push eax
call fcn.0051133b
add esp, 4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x88], ecx
mov edx, dword [ebp - 0x88]
push edx
call fcn.004dd713
add esp, 4
mov eax, dword [ebp - 0x4c]
mov esp, ebp
pop ebp
ret