Function at 0x603d00
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x756826
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
call fcn.006a2990
lea eax, [esp + 0x12]
xor ebp, ebp
push eax
lea edx, [esp + 0x17]
lea ecx, [esi + 0x38]
push ebp
push edx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x24], ecx
call fcn.00612cd0
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x58]
push ebp
mov byte [esp + 0x50], 2
push edx
mov dword [esp + 0x24], ecx
call fcn.00612cd0
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x68]
push 1
mov byte [esp + 0x50], 4
push edx
mov dword [esp + 0x24], ecx
call fcn.00613010
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x78]
push ebp
mov byte [esp + 0x50], 6
push edx
mov dword [esp + 0x24], ecx
call fcn.006137a0
lea eax, [esp + 0x13]
lea edx, [esp + 0x12]
push eax
lea ecx, [esi + 0x88]
push ebp
mov byte [esp + 0x50], 8
push edx
mov dword [esp + 0x24], ecx
call fcn.006137a0
mov al, byte [esp + 0x50]
lea edi, [esi + 0xe8]
mov byte [esp + 0x48], 0xa
push ebp
lea ecx, [edi + 4]
mov dword [esp + 0x1c], edi
mov byte [ecx], al
call fcn.00404760
lea ecx, [esp + 0x13]
mov byte [esp + 0x48], 0xb
push ecx
lea ecx, [edi + 0x14]
call fcn.006b8ea0
mov byte [esp + 0x48], 0xc
lea edx, [esp + 0x12]
push edx
lea ecx, [edi + 0x24]
call fcn.006b8ea0
mov eax, dword [esp + 0x50]
mov byte [esp + 0x48], 0xe
push 0x24
mov dword [esi], fcn.0043ac40
mov dword [esi + 0x18], eax
mov dword [esi + 0xe4], ebp
mov dword [esi + 0x184], ebp
mov dword [esi + 0x188], ebp
mov dword [esi + 0x18c], ebp
mov dword [esi + 0x190], 0xffffffff
mov dword [esi + 0x194], ebp
mov dword [esi + 0x198], ebp
mov dword [esi + 0x19c], ebp
mov dword [esi + 0x1a0], 0x41700000
mov byte [esi + 0x1a4], 0
call fcn.00726f70
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0xf
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x603ea0
lea ecx, [esp + 0x50]
push ecx
lea ecx, [edi + 4]
call fcn.006b8ea0
lea edx, [esp + 0x13]
lea eax, [esp + 0x12]
push edx
push eax
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x10
call fcn.00618050
mov byte [esp + 0x48], 0x11
mov dword [edi], 0x76ce00
mov byte [esp + 0x48], bl
jmp 0x603ea2
xor edi, edi
mov cl, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
mov byte [esp + 0x20], cl
push ebp
lea ecx, [esp + 0x24]
mov dword [esi + 0x1c], edi
call fcn.00404760
mov edi, 0x7a928c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a928c
lea ecx, [esp + 0x28]
call fcn.004047b0
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
cmp eax, ebp
mov byte [esp + 0x48], 0x12
mov dword [esp + 0x18], edx
je 0x604091
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x603eff
mov eax, 0x765608
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x603f3c
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x603f29
mov eax, 0x765608
push eax
push 0x7a45b8
call fcn.00455190
add esp, 8
jmp 0x604091
lea eax, [esp + 0x20]
push 0x7a45b0
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.0040aca0
add esp, 0xc
lea edx, [esp + 0x14]
mov byte [esp + 0x48], 0x13
push edx
push ebx
mov dword [esp + 0x1c], ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
ja 0x603f86
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x604076
jmp 0x604071
push ebp
call fcn.00726f70
add esp, 4
mov edi, eax
lea eax, [esp + 0x50]
mov dword [esp + 0x50], 0
push 0
push eax
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x1608
push 0x6081
push 0x816
push ebp
push edi
call fcn.0045a490
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
jne 0x603fd6
mov eax, 0x765608
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
lea ecx, [esp + 0x50]
push 0
push ecx
mov ebx, eax
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call ebp
push edi
call fcn.00726ea6
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x604020
mov eax, 0x765608
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esp + 0x18]
mov edi, eax
push edi
call fcn.0061b660
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x604069
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x60405b
mov eax, 0x765608
push eax
push 0x7a458c
call fcn.00455190
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x604076
mov eax, 0x765608
push eax
call fcn.00727c17
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x12
push 1
call fcn.00404760
xor ebp, ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
push 0x24
call fcn.00726f70
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x14
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x6040f0
lea edx, [esp + 0x50]
lea ecx, [edi + 4]
push edx
call fcn.006b8ea0
lea eax, [esp + 0x13]
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x15
call fcn.00618250
mov byte [esp + 0x48], 0x16
mov dword [edi], 0x76cdfc
mov byte [esp + 0x48], bl
jmp 0x6040f2
xor edi, edi
mov dl, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ebp
lea ecx, [esp + 0x24]
mov dword [esi + 0x20], edi
mov byte [esp + 0x24], dl
call fcn.00404760
mov edi, 0x7a9274
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a9274
lea ecx, [esp + 0x28]
call fcn.004047b0
mov eax, dword [esi + 0x20]
mov byte [esp + 0x48], 0x17
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x6042e5
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x60414f
mov eax, 0x765608
push ebp
push 0x80
push 3
push ebp
push ebp
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x60418c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x604179
mov eax, 0x765608
push eax
push 0x7a45b8
call fcn.00455190
add esp, 8
jmp 0x6042e3
lea ecx, [esp + 0x20]
push 0x7a45b0
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.0040aca0
add esp, 0xc
lea eax, [esp + 0x18]
mov byte [esp + 0x48], 0x18
push eax
push ebx
mov dword [esp + 0x20], 0
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
test ebp, ebp
ja 0x6041da
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6042ca
jmp 0x6042c5
push ebp
call fcn.00726f70
add esp, 4
lea ecx, [esp + 0x50]
mov edi, eax
mov dword [esp + 0x50], 0
push 0
push ecx
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push 0x1608
push 0x6081
push 0x816
push ebp
push edi
call fcn.0045a490
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
jne 0x60422a
mov eax, 0x765608
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
lea edx, [esp + 0x50]
push 0
push edx
mov ebx, eax
push ebp
push edi
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov ebp, dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call ebp
push edi
call fcn.00726ea6
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x604274
mov eax, 0x765608
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esp + 0x14]
mov edi, eax
push edi
call fcn.0061ba00
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x6042bd
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x6042af
mov eax, 0x765608
push eax
push 0x7a458c
call fcn.00455190
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6042ca
mov eax, 0x765608
push eax
call fcn.00727c17
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x17
push 1
call fcn.00404760
xor ebp, ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
push 0x24
call fcn.00726f70
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x19
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x604344
lea eax, [esp + 0x50]
lea ecx, [edi + 4]
push eax
call fcn.006b8ea0
lea ecx, [esp + 0x13]
lea edx, [esp + 0x12]
push ecx
push edx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x1a
call fcn.00618450
mov byte [esp + 0x48], 0x1b
mov dword [edi], 0x76cdf8
mov byte [esp + 0x48], bl
jmp 0x604346
xor edi, edi
mov al, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0x24], edi
mov byte [esp + 0x34], al
call fcn.00404760
mov edi, 0x7a925c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a925c
lea ecx, [esp + 0x38]
call fcn.004047b0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x1c
push ecx
mov ecx, dword [esi + 0x24]
call fcn.00615870
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
push 0x24
call fcn.00726f70
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x1d
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x6043ef
lea edx, [esp + 0x50]
lea ecx, [edi + 4]
push edx
call fcn.006b8ea0
lea eax, [esp + 0x13]
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x1e
call fcn.00618650
mov byte [esp + 0x48], 0x1f
mov dword [edi], 0x76ce0c
mov byte [esp + 0x48], bl
jmp 0x6043f1
xor edi, edi
mov dl, byte [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0x28], edi
mov byte [esp + 0x34], dl
call fcn.00404760
mov edi, 0x7a9244
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x7a9244
lea ecx, [esp + 0x38]
call fcn.004047b0
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0x20
call fcn.00615c30
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
push 0x24
call fcn.00726f70
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x21
je 0x60446b
mov ecx, eax
call fcn.00616000
jmp 0x60446d
xor eax, eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ecx
push 0x7a922c
lea ecx, [esp + 0x38]
mov dword [esi + 0x2c], eax
call fcn.004b8bb0
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4c], 0x22
call fcn.00616120
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
push 0x24
call fcn.00726f70
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x23
je 0x6044ca
mov ecx, eax
call fcn.00616a20
jmp 0x6044cc
xor eax, eax
mov byte [esp + 0x48], 0xe
mov dword [esi + 0x30], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push 0x7a92a4
call fcn.004b8bb0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x24
push ecx
mov ecx, dword [esi + 0x30]
call fcn.00616b30
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
push 0x24
call fcn.00726f70
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x25
je 0x604529
mov ecx, eax
call fcn.00616520
jmp 0x60452b
xor eax, eax
lea edx, [esp + 0x50]
mov byte [esp + 0x48], 0xe
push edx
push 0x7a9214
lea ecx, [esp + 0x38]
mov dword [esi + 0x34], eax
call fcn.004b8bb0
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0x26
call fcn.00616630
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.00404760
mov ecx, esi
call fcn.00604590
mov ecx, dword [esp + 0x40]
mov eax, esi
pop edi
pop esi
mov dword [esp + 0x40], 0xffffffff
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3c
ret 4