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

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
test esi, esi
push edi
jne 0x100b13c9
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push esi
call fcn.100b6f10
add esp, 4
test eax, eax
jne 0x100b13de
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esi]
mov ebp, 1
cmp eax, ebp
mov dword [esp + 0x10], 0
jne 0x100b15bf
mov esi, dword [esi + 4]
push ebp
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, eax
cmp edi, 0xffffffff
jne 0x100b1415
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
mov dword [esp + 0x18], 0
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x28], ebx
jle 0x100b1479
push ebx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebp, eax
lea eax, [esp + 0x14]
mov dword [esp + 0x18], ebp
push 0
push eax
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x100b1468
push ebp
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, 1
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
cmp eax, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
jle 0x100b1559
lea edi, [esp + 0x40]
mov dword [esp + 0x24], edi
mov eax, dword [edi + 8]
mov dword [esp + 0x1c], 0
cmp eax, 0x80000004
jne 0x100b14b1
mov ebx, dword [edi]
jmp 0x100b14da
push edi
call fcn.100b6d70
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100b14d2
lea ecx, [esp + 0x14]
push eax
push ecx
push 2
push 0x100f3e3c
push esi
call ebp
jmp 0x100b1531
mov dword [esp + 0x1c], 1
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x100b1514
lea edx, [esp + 0x14]
push eax
push edx
push ecx
push ebx
push esi
call ebp
test eax, eax
je 0x100b150c
lea eax, [esp + 0x14]
push 0
push eax
push 2
push 0x100f3e3c
push esi
call ebp
jmp 0x100b1514
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100b1525
push ebx
call sub.MSVCRT.dll_free
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100b159e
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
inc eax
add edi, 0xc
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edi
jl 0x100b149b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100b159e
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100b16dd
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
push edx
push esi
mov edi, eax
call ebp
test eax, eax
je 0x100b1596
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x100b159e
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100b16dd
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
cmp eax, 2
jne 0x100b16dd
mov ebx, dword [esi + 4]
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x14]
mov edx, dword [ebx]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x28]
push eax
push ecx
push 0xffffffffffffffff
push 0
mov ecx, ebx
call dword [edx + 0x30]
mov ebp, eax
xor esi, esi
test ebp, ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
jle 0x100b161c
push ebp
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, dword [esp + 0x2c]
mov ecx, ebp
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x18], eax
rep movsb byte es:[edi], byte [esi]
mov esi, eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], 1
cmp eax, 1
jle 0x100b16b4
lea edi, [esp + 0x40]
dec eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
mov eax, dword [edi + 8]
xor ebp, ebp
cmp eax, 0x80000004
jne 0x100b164e
mov esi, dword [edi]
jmp 0x100b1662
push edi
call fcn.100b6d70
mov esi, eax
add esp, 4
test esi, esi
je 0x100b169a
mov ebp, 1
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x100b167b
mov eax, dword [ebx]
push ecx
push esi
mov ecx, ebx
call dword [eax + 0x24]
mov edx, dword [ebx]
push 2
push 0x100f3e3c
mov ecx, ebx
call dword [edx + 0x24]
test ebp, ebp
je 0x100b1696
push esi
call sub.MSVCRT.dll_free
add esp, 4
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
add edi, 0xc
dec eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x24], eax
jne 0x100b163e
mov ebp, dword [esp + 0x20]
mov esi, dword [esp + 0x18]
test esi, esi
je 0x100b16dd
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x14]
mov edx, dword [ebx]
push ebp
push esi
mov ecx, ebx
mov edi, eax
call dword [edx + 0x24]
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebx]
add esp, 4
mov ecx, ebx
push 0
push edi
call dword [eax + 0x18]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret