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

Disassembly:
push 0xffffffffffffffff
push 0x5d4bd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
mov eax, dword [0x6613ec]
push esi
push edi
mov esi, ecx
push 1
add eax, 4
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x20], esi
call fcn.005789d4
xor edi, edi
mov dword [esp + 0x44], edi
mov eax, dword [esi + 0x48]
cmp eax, edi
je 0x4d3668
lea ecx, [esp + 0xc]
push ecx
push eax
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
cmp dword [esp + 0xc], 0x103
je 0x4d3668
mov edx, dword [esi + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x48], edi
cmp dword [esi + 0x48], edi
je 0x4d3693
mov dword [esp + 0x44], 0xffffffff
lea ecx, [esp + 0x30]
call fcn.0057897a
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret 0x18
mov eax, dword [esi + 0x3c]
push ebx
mov ebx, dword [eax]
cmp ebx, eax
mov dword [esp + 0xc], ebx
je 0x4d383d
push ebp
jmp 0x4d36b0
mov ebx, dword [esp + 0x10]
lea esp, [esp]
mov ebp, dword [ebx + 0xc]
mov edi, dword [ebp]
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 4]
mov eax, dword [ebp + 0xc]
add edx, edi
adc eax, ecx
cmp eax, dword [esp + 0x58]
jb 0x4d3824
ja 0x4d36d9
cmp edx, dword [esp + 0x54]
jbe 0x4d3824
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x54]
add edx, eax
mov eax, dword [esp + 0x58]
adc eax, dword [esp + 0x64]
cmp eax, ecx
jb 0x4d3824
ja 0x4d36fd
cmp edx, edi
jbe 0x4d3824
mov eax, dword [ebp]
mov edx, dword [esi + 0x58]
push 0
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp + 8]
push eax
call fcn.004a2c90
mov ecx, eax
call fcn.0048c8b0
mov edi, eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], 0
je 0x4d37c8
nop
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebx + 8]
mov edx, dword [esp + 0x14]
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebx + 4]
mov esi, dword [ebx]
mov eax, ecx
shr ecx, 2
add edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 4]
add edx, ecx
mov ecx, dword [0x658d88]
test ecx, ecx
mov dword [esp + 0x14], edx
jne 0x4d37a4
push 0x10
call fcn.005abebb
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x4c], 1
test eax, eax
je 0x4d3795
mov ecx, eax
call fcn.0048c7d0
jmp 0x4d3797
xor eax, eax
mov byte [esp + 0x4c], 0
mov ecx, eax
mov dword [0x658d88], ecx
mov edx, dword [ebx]
push edx
call fcn.0048c9d0
push ebx
call fcn.005abee6
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x1c]
add esp, 4
test eax, eax
jne 0x4d3740
mov esi, dword [esp + 0x20]
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esi + 0x58]
push 0
lea eax, [esp + 0x34]
push eax
push ecx
push edi
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.004a2c90
mov ecx, eax
call fcn.0048c9d0
mov eax, dword [ebp + 8]
mov edi, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
sub edi, eax
mov dword [esi + 0x30], edi
mov ecx, dword [ebp + 0xc]
sbb edx, ecx
push ebp
mov dword [esi + 0x34], edx
call fcn.005abee6
add esp, 4
push ebx
lea edx, [esp + 0x38]
push edx
lea ecx, [esi + 0x38]
call fcn.004a3580
mov eax, dword [eax]
mov dword [esp + 0x10], eax
dec dword [esi + 0x28]
jmp 0x4d382d
lea ecx, [esp + 0x10]
call fcn.004454c0
mov ecx, dword [esp + 0x10]
cmp ecx, dword [esi + 0x3c]
jne 0x4d36a8
xor edi, edi
pop ebp
mov edx, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push edi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], edx
mov edx, dword [esi + 0x58]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
push edi
lea eax, [esp + 0x28]
push eax
mov eax, dword [esi + 0x58]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x24]
mov dword [eax], ecx
mov dword [eax + 4], edi
mov dword [esp + 0x48], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.0057897a
mov ecx, dword [esp + 0x40]
pop ebx
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret 0x18