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

Disassembly:
push 0xffffffffffffffff
push 0x100ac0d1
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100de040]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
mov eax, dword [0x100de040]
xor eax, esp
push eax
lea eax, [esp + 0x240]
mov dword fs:[0], eax
xor ebp, ebp
mov esi, ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], edi
cmp edi, ebp
je 0x10054eb2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push edi
call ecx
push 0x206
lea eax, [esp + 0x3a]
xor edx, edx
push ebp
mov dword [esp + 0x250], ebp
push eax
mov word [esp + 0x40], dx
call fcn.10064e10
mov ecx, dword [edi]
mov eax, dword [ecx + 0x54]
add esp, 0xc
push 0x104
lea edx, [esp + 0x38]
push edx
push edi
call eax
mov ebx, eax
cmp ebx, ebp
jl 0x10055054
cmp ebx, 1
je 0x10055054
push ebp
push ebp
push 2
push ebp
push ebp
push 0x40000000
lea ecx, [esp + 0x4c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
jne 0x10054f38
call fcn.10002d30
mov ebx, eax
mov dword [esp + 0x248], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
jmp 0x10055067
push ebp
push ebp
push ebp
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x10054f71
call fcn.10002d30
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x248], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, ebp
jmp 0x10055069
push 0x100e33b4
push 0x80000
call fcn.100628bb
mov esi, eax
add esp, 8
mov dword [esp + 0x18], esi
mov byte [esp + 0x248], 2
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
lea ecx, [ecx]
push 0x80000
push ebp
push esi
call fcn.10064e10
mov ecx, dword [esp + 0x38]
add esp, 0xc
push ebp
lea eax, [esp + 0x2c]
push eax
push 0x80000
push esi
push ecx
mov dword [esp + 0x3c], ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005501d
mov eax, dword [esp + 0x28]
push ebp
lea edx, [esp + 0x18]
push edx
push eax
push esi
push ebx
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005503b
mov ecx, dword [esp + 0x14]
add dword [esp + 0x1c], ecx
lea eax, [esp + 0x1c]
push eax
adc dword [esp + 0x24], ebp
mov edx, dword [edi]
mov ecx, dword [edx + 0x3c]
push edi
call ecx
mov ebx, eax
cmp ebx, ebp
jl 0x10055024
cmp ebx, 1
je 0x10055024
cmp dword [esp + 0x14], 0x80000
jne 0x10055090
mov ebx, dword [esp + 0x10]
jmp 0x10054fa0
call fcn.10002d30
mov ebx, eax
lea esi, [esp + 0x18]
call fcn.10008990
lea esi, [esp + 0x10]
call fcn.1000fee0
jmp 0x10054f20
call fcn.10002d30
lea esi, [esp + 0x18]
mov ebx, eax
call fcn.10008990
lea esi, [esp + 0x10]
call fcn.1000fee0
mov dword [esp + 0x248], 0xffffffff
mov ecx, dword [edi]
mov edx, dword [ecx + 8]
push edi
call edx
mov eax, ebx
mov ecx, dword [esp + 0x240]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.10062448
add esp, 0x23c
ret
lea esi, [esp + 0x18]
call fcn.10008990
lea esi, [esp + 0x10]
call fcn.1000fee0
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
xor eax, eax
jmp 0x10055069