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

Disassembly:
push 0xffffffffffffffff
push 0x100a0591
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x100d1040]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
mov eax, dword [0x100d1040]
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 0x1001baf2
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.10059a00
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 0x1001bc94
cmp ebx, 1
je 0x1001bc94
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 0x1001bb78
call fcn.10002c20
mov ebx, eax
mov dword [esp + 0x248], 0xffffffff
mov edx, dword [edi]
mov eax, dword [edx + 8]
push edi
call eax
jmp 0x1001bca7
push ebp
push ebp
push ebp
xor eax, eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x1001bbb1
call fcn.10002c20
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 0x1001bca9
push 0x100d61b4
push 0x80000
call fcn.10057582
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.10059a00
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 0x1001bc5d
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 0x1001bc7b
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 0x1001bc64
cmp ebx, 1
je 0x1001bc64
cmp dword [esp + 0x14], 0x80000
jne 0x1001bcd0
mov ebx, dword [esp + 0x10]
jmp 0x1001bbe0
call fcn.10002c20
mov ebx, eax
lea esi, [esp + 0x18]
call fcn.1004b720
lea esi, [esp + 0x10]
call fcn.1000fcc0
jmp 0x1001bb60
call fcn.10002c20
lea esi, [esp + 0x18]
mov ebx, eax
call fcn.1004b720
lea esi, [esp + 0x10]
call fcn.1000fcc0
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.1005710f
add esp, 0x23c
ret
lea esi, [esp + 0x18]
call fcn.1004b720
lea esi, [esp + 0x10]
call fcn.1000fcc0
mov dword [esp + 0x248], 0xffffffff
mov eax, dword [edi]
mov ecx, dword [eax + 8]
push edi
call ecx
xor eax, eax
jmp 0x1001bca9