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

Disassembly:
push 0xffffffffffffffff
push 0x696ec6
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.00611300
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.0058af10
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.0058af10
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.0058b250
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.0058b9e0
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.0058b9e0
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.004031c0
lea ecx, [esp + 0x13]
mov byte [esp + 0x48], 0xb
push ecx
lea ecx, [edi + 0x14]
call fcn.00590890
mov byte [esp + 0x48], 0xc
lea edx, [esp + 0x12]
push edx
lea ecx, [edi + 0x24]
call fcn.00590890
mov eax, dword [esp + 0x50]
mov byte [esp + 0x48], 0xe
push 0x24
mov dword [esi], fcn.0042de30
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.00673b05
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0xf
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x57de30
lea ecx, [esp + 0x50]
push ecx
lea ecx, [edi + 4]
call fcn.00590890
lea edx, [esp + 0x13]
lea eax, [esp + 0x12]
push edx
push eax
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x10
call fcn.00590290
mov byte [esp + 0x48], 0x11
mov dword [edi], 0x6a82a0
mov byte [esp + 0x48], bl
jmp 0x57de32
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.004031c0
mov edi, 0x6d72ac
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d72ac
lea ecx, [esp + 0x28]
call fcn.004083a0
mov eax, dword [esp + 0x28]
mov edx, dword [esi + 0x1c]
cmp eax, ebp
mov byte [esp + 0x48], 0x12
mov dword [esp + 0x18], edx
je 0x57e021
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x57de8f
mov eax, 0x6a3560
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x57decc
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x57deb9
mov eax, 0x6a3560
push eax
push 0x6d40b4
call fcn.0044a330
add esp, 8
jmp 0x57e021
lea eax, [esp + 0x20]
push 0x6d40ac
lea ecx, [esp + 0x34]
push eax
push ecx
call fcn.00408440
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 0x57df16
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x57e006
jmp 0x57e001
push ebp
call fcn.00673b05
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.0044f670
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
jne 0x57df66
mov eax, 0x6a3560
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.006713a0
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x57dfb0
mov eax, 0x6a3560
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esp + 0x18]
mov edi, eax
push edi
call fcn.005938c0
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x57dff9
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x57dfeb
mov eax, 0x6a3560
push eax
push 0x6d4088
call fcn.0044a330
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x57e006
mov eax, 0x6a3560
push eax
call fcn.00674ba7
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x12
push 1
call fcn.004031c0
xor ebp, ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
push 0x24
call fcn.00673b05
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x14
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x57e080
lea edx, [esp + 0x50]
lea ecx, [edi + 4]
push edx
call fcn.00590890
lea eax, [esp + 0x13]
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x15
call fcn.00590490
mov byte [esp + 0x48], 0x16
mov dword [edi], 0x6a829c
mov byte [esp + 0x48], bl
jmp 0x57e082
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.004031c0
mov edi, 0x6d7294
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d7294
lea ecx, [esp + 0x28]
call fcn.004083a0
mov eax, dword [esi + 0x20]
mov byte [esp + 0x48], 0x17
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
cmp eax, ebp
je 0x57e275
mov eax, dword [esp + 0x24]
cmp eax, ebp
jne 0x57e0df
mov eax, 0x6a3560
push ebp
push 0x80
push 3
push ebp
push ebp
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x57e11c
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x57e109
mov eax, 0x6a3560
push eax
push 0x6d40b4
call fcn.0044a330
add esp, 8
jmp 0x57e273
lea ecx, [esp + 0x20]
push 0x6d40ac
lea edx, [esp + 0x34]
push ecx
push edx
call fcn.00408440
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 0x57e16a
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x57e25a
jmp 0x57e255
push ebp
call fcn.00673b05
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.0044f670
mov eax, dword [esp + 0x48]
add esp, 0x14
test eax, eax
jne 0x57e1ba
mov eax, 0x6a3560
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.006713a0
mov eax, dword [esp + 0x38]
add esp, 4
test eax, eax
jne 0x57e204
mov eax, 0x6a3560
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ecx, dword [esp + 0x14]
mov edi, eax
push edi
call fcn.00593c60
push edi
mov ebx, eax
call ebp
test ebx, ebx
jne 0x57e24d
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x57e23f
mov eax, 0x6a3560
push eax
push 0x6d4088
call fcn.0044a330
add esp, 8
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x57e25a
mov eax, 0x6a3560
push eax
call fcn.00674ba7
add esp, 4
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x17
push 1
call fcn.004031c0
xor ebp, ebp
push 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
push 0x24
call fcn.00673b05
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x19
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x57e2d4
lea eax, [esp + 0x50]
lea ecx, [edi + 4]
push eax
call fcn.00590890
lea ecx, [esp + 0x13]
lea edx, [esp + 0x12]
push ecx
push edx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x1a
call fcn.00590690
mov byte [esp + 0x48], 0x1b
mov dword [edi], 0x6a8298
mov byte [esp + 0x48], bl
jmp 0x57e2d6
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.004031c0
mov edi, 0x6d727c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d727c
lea ecx, [esp + 0x38]
call fcn.004083a0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x1c
push ecx
mov ecx, dword [esi + 0x24]
call fcn.0058dab0
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
push 0x24
call fcn.00673b05
mov edi, eax
add esp, 4
mov dword [esp + 0x18], edi
mov bl, 0x1d
cmp edi, ebp
mov byte [esp + 0x48], bl
je 0x57e37f
lea edx, [esp + 0x50]
lea ecx, [edi + 4]
push edx
call fcn.00590890
lea eax, [esp + 0x13]
lea ecx, [esp + 0x12]
push eax
push ecx
lea ecx, [edi + 0x14]
mov byte [esp + 0x50], 0x1e
call fcn.005908b0
mov byte [esp + 0x48], 0x1f
mov dword [edi], 0x6a82ac
mov byte [esp + 0x48], bl
jmp 0x57e381
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.004031c0
mov edi, 0x6d7264
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x6d7264
lea ecx, [esp + 0x38]
call fcn.004083a0
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0x20
call fcn.0058de70
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
push 0x24
call fcn.00673b05
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x21
je 0x57e3fb
mov ecx, eax
call fcn.0058e240
jmp 0x57e3fd
xor eax, eax
lea ecx, [esp + 0x50]
mov byte [esp + 0x48], 0xe
push ecx
push 0x6d724c
lea ecx, [esp + 0x38]
mov dword [esi + 0x2c], eax
call fcn.004a64f0
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x4c], 0x22
call fcn.0058e360
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
push 0x24
call fcn.00673b05
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x23
je 0x57e45a
mov ecx, eax
call fcn.0058ec60
jmp 0x57e45c
xor eax, eax
mov byte [esp + 0x48], 0xe
mov dword [esi + 0x30], eax
lea eax, [esp + 0x50]
lea ecx, [esp + 0x30]
push eax
push 0x6d72c4
call fcn.004a64f0
lea ecx, [esp + 0x30]
mov byte [esp + 0x48], 0x24
push ecx
mov ecx, dword [esi + 0x30]
call fcn.0058ed70
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
push 0x24
call fcn.00673b05
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebp
mov byte [esp + 0x48], 0x25
je 0x57e4b9
mov ecx, eax
call fcn.0058e760
jmp 0x57e4bb
xor eax, eax
lea edx, [esp + 0x50]
mov byte [esp + 0x48], 0xe
push edx
push 0x6d7234
lea ecx, [esp + 0x38]
mov dword [esi + 0x34], eax
call fcn.004a64f0
mov ecx, dword [esi + 0x34]
lea eax, [esp + 0x30]
push eax
mov byte [esp + 0x4c], 0x26
call fcn.0058e870
push 1
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0xe
call fcn.004031c0
mov ecx, esi
call fcn.0057e520
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