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

Disassembly:
push 0xffffffffffffffff
push 0x73e0d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
call fcn.004583f0
mov eax, dword [esp + 0x48]
push 0x10
push 0x5622
xor ebx, ebx
push 2
push ebx
push eax
call fcn.0045b3c0
mov cl, byte [esp + 0x5c]
mov byte [esi + 0x28], al
mov byte [esp + 0x2c], cl
mov edi, 0x7a45f4
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
mov dword [esp + 0x1c], ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call fcn.00401450
test al, al
je 0x457dec
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, 0x7a45f4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], bl
mov eax, dword [esp + 0x20]
mov dword [esp + 0x40], ebx
cmp eax, ebx
je 0x457faf
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x457e09
mov eax, 0x765608
push ebx
push 0x80
push 3
push ebx
push ebx
push closesocket
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x457e46
mov eax, dword [esp + 0x1c]
cmp eax, ebx
jne 0x457e33
mov eax, 0x765608
push eax
push 0x7a45b8
call fcn.00455190
add esp, 8
jmp 0x457faf
lea ecx, [esp + 0x18]
push 0x7a45b0
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.0040aca0
add esp, 0xc
lea eax, [esp + 0x10]
mov byte [esp + 0x40], 1
push eax
push edi
mov dword [esp + 0x18], ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
cmp ebp, ebx
ja 0x457eaa
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x2c]
cmp eax, ebx
jne 0x457e8c
mov eax, 0x765608
push eax
call fcn.00727c17
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
push 1
call fcn.00404760
jmp 0x457faf
push ebp
call fcn.00726f70
add esp, 4
lea ecx, [esp + 0x48]
mov esi, eax
mov dword [esp + 0x48], ebx
push ebx
push ecx
push ebp
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call ebx
push 0x1608
push 0x6081
push 0x816
push ebp
push esi
call fcn.0045a490
mov eax, dword [esp + 0x40]
add esp, 0x14
test eax, eax
jne 0x457ef7
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 + 0x48]
push 0
push edx
mov edi, eax
push ebp
push esi
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
push edi
call ebx
push esi
call fcn.00726ea6
mov eax, dword [esp + 0x30]
add esp, 4
test eax, eax
jne 0x457f3b
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 esi, eax
mov eax, dword [esp + 0x14]
push esi
lea ecx, [eax + 4]
call fcn.00459160
push esi
mov edi, eax
call ebx
test edi, edi
jne 0x457f87
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x457f79
mov eax, 0x765608
push eax
push 0x7a458c
call fcn.00455190
add esp, 8
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x457f94
mov eax, 0x765608
push eax
call fcn.00727c17
add esp, 4
lea ecx, [esp + 0x28]
mov byte [esp + 0x40], 0
push 1
call fcn.00404760
xor ebx, ebx
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
cmp eax, ebx
mov dword [esp + 0x34], 0xffffffff
pop ebx
je 0x457fef
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x457fe6
cmp al, 0xff
je 0x457fe6
dec al
mov byte [ecx], al
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4
push ecx
call fcn.00726ea6
add esp, 4
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 4