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

Disassembly:
sub esp, 0x34
mov eax, dword [0x755898]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x48]
push ebp
push esi
push edi
xor edi, edi
push edi
lea edx, [esp + 0x14]
push edx
mov esi, ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x34], eax
mov ebp, 8
push ebp
lea eax, [esp + 0x3c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x128]
push eax
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a385d
cmp dword [esp + 0x10], ebp
jne 0x5a385d
add dword [esi + 0x70], ebp
mov edx, dword [esp + 0x30]
push edx
adc dword [esi + 0x74], edi
call sub.WS2_32.dll_ntohl
cdq
mov ebp, eax
mov edi, edx
cmp ebp, 1
jne 0x5a34a2
test edi, edi
jne 0x5a34a2
push edx
mov edx, dword [esi + 0x128]
lea eax, [esp + 0x14]
push eax
mov edi, 8
push edi
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a385d
cmp dword [esp + 0x10], edi
jne 0x5a385d
add dword [esi + 0x70], edi
lea eax, [esp + 0x38]
push eax
adc dword [esi + 0x74], 0
mov ecx, esi
call fcn.005c6450
mov ebp, eax
test edx, edx
jg 0x5a3494
jl 0x5a385d
cmp ebp, 0x10
jb 0x5a385d
add ebp, 0xfffffff0
adc edx, 0xffffffff
mov dword [esp + 0x1c], edx
mov edi, edx
jmp 0x5a34db
test ebp, ebp
jne 0x5a34be
test edi, edi
jne 0x5a34c0
mov ebp, dword [esi + 0x68]
sub ebp, dword [esi + 0x70]
mov eax, dword [esi + 0x6c]
sbb eax, dword [esi + 0x74]
mov dword [esp + 0x1c], eax
mov edi, eax
jmp 0x5a34db
test edi, edi
jg 0x5a34d1
jl 0x5a385d
cmp ebp, 8
jb 0x5a385d
add ebp, 0xfffffff8
adc edi, 0xffffffff
mov dword [esp + 0x1c], edi
mov eax, dword [esp + 0x34]
cmp eax, 0x666f6f6d
jne 0x5a3548
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x128]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a385d
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x5a385d
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.005a2550
add dword [esi + 0x70], ebp
mov eax, 1
adc dword [esi + 0x74], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x34
ret 0x10
cmp eax, 0x78646973
jne 0x5a35b1
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x128]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a385d
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0x5a385d
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push ecx
push edx
push eax
mov eax, dword [esp + 0x20]
push eax
mov ecx, esi
call fcn.005a1660
add dword [esi + 0x70], ebp
mov eax, 1
adc dword [esi + 0x74], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x34
ret 0x10
cmp eax, 0x7461646d
jne 0x5a3733
xor edx, edx
cmp dword [esi + 0x90], edx
je 0x5a3613
cmp dword [esi + 0x64], edx
jne 0x5a3613
push edx
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x74]
add eax, ebp
lea edx, [esp + 0x20]
push edx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x128]
adc ecx, edi
push eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x5a383d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
test eax, eax
je 0x5a383d
jmp 0x5a3869
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
jmp 0x5a3620
mov ecx, ebp
sub ecx, edx
mov eax, edi
sbb eax, dword [esp + 0x24]
xor edi, edi
cmp eax, edi
jg 0x5a363e
jl 0x5a3638
cmp ecx, dword [esp + 0x50]
jae 0x5a363e
mov edi, ebp
sub edi, edx
jmp 0x5a3642
mov edi, dword [esp + 0x50]
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x128]
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a385d
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x5a385d
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x2c]
push ecx
push eax
mov eax, dword [esp + 0x38]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x5a385d
mov ecx, dword [esp + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x5a385d
xor eax, eax
add dword [ebx], ecx
adc dword [ebx + 4], eax
add dword [esp + 0x20], ecx
mov edi, dword [esi + 0xa8]
adc dword [esp + 0x24], eax
test edi, edi
je 0x5a370c
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push eax
push 0x3e8
push ecx
push edx
call fcn.00621c40
mov ecx, dword [esi + 0xb4]
push ecx
mov ecx, dword [esi + 0xb0]
push ecx
push edx
push eax
call fcn.006212e0
cmp eax, 0x3e8
jle 0x5a36ea
mov eax, 0x3e8
cmp eax, dword [esi + 0xb8]
jle 0x5a370c
mov edx, dword [esi + 0xbc]
push eax
push edx
push 0x2b4b
push edi
mov dword [esi + 0xb8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x1c]
jg 0x5a3839
jl 0x5a3726
cmp dword [esp + 0x20], ebp
jae 0x5a3839
mov edx, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
jmp 0x5a3620
push 0
cmp eax, 0x766f6f6d
jne 0x5a35cc
mov ebx, dword [esp + 0x18]
mov edx, dword [esi + 0x128]
lea ecx, [esp + 0x14]
push ecx
push ebp
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5a385d
mov ecx, dword [esp + 0x10]
cmp ecx, ebp
jne 0x5a385d
test ecx, ecx
je 0x5a385d
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5a3788
push eax
call fcn.005f15b7
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call fcn.005f15c2
add esp, 4
mov dword [esi + 0x1c], eax
test eax, eax
je 0x5a385d
mov ecx, dword [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0061eea0
mov edx, dword [esp + 0x1c]
add esp, 0xc
cmp dword [esi + 0x90], 0
mov dword [esi + 0x20], edx
mov ecx, esi
je 0x5a3814
call fcn.005a3240
cmp dword [esi + 0x98], 0
je 0x5a3869
mov eax, dword [esp + 0x10]
push eax
call fcn.005f15c2
mov ecx, dword [esi + 0x98]
mov dword [ecx + 0x1c], eax
mov edx, dword [esi + 0x98]
mov eax, dword [edx + 0x1c]
add esp, 4
test eax, eax
je 0x5a385d
mov ecx, dword [esp + 0x10]
push ecx
push ebx
push eax
call fcn.0061eea0
mov edx, dword [esi + 0x98]
mov eax, dword [esp + 0x1c]
mov dword [edx + 0x20], eax
mov ecx, dword [esi + 0x98]
add esp, 0xc
call fcn.005a3240
add dword [esi + 0x70], ebp
mov eax, 1
adc dword [esi + 0x74], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x34
ret 0x10
mov edi, dword [esp + 0x1c]
add dword [esi + 0x70], ebp
mov eax, 1
adc dword [esi + 0x74], edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.0061d2ff
add esp, 0x34
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0xa4], eax
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0061d2ff
add esp, 0x34
ret 0x10