Function at 0x100b0cb0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012c478
mov eax, dword fs:[0]
push eax
sub esp, 0x94
mov eax, dword [0x10167c60]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x90], eax
mov esi, dword [ebp + 8]
lea edi, [eax + 0x24]
test esi, esi
jne 0x100b0cf4
xor ecx, ecx
jmp 0x100b0d0f
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b0d00
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.1000b940
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
je 0x100b1132
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
jle 0x100b0d7f
lea esi, [ebx + 8]
push esi
call fcn.100c4998
push esi
mov edi, eax
push 0
push edi
call fcn.100e67c0
mov esi, dword [ebp - 0x8c]
lea eax, [ebp - 0x9c]
add esp, 0x10
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x100b0d85
mov esi, dword [ebp - 0x8c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x100b1132
test ebx, ebx
jle 0x100b1132
push edi
call fcn.10097680
mov esi, eax
add esp, 4
test esi, esi
je 0x100b1129
mov dword [ebp - 0xa0], esi
mov dword [ebp - 4], 0
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b1150
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
mov eax, 0x101308ac
mov byte [ebp - 4], 1
shr eax, 0x10
mov ecx, 0x101308ac
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x100b0e05
movzx eax, cx
lea ecx, [ebp - 0x8c]
push eax
call fcn.10008a30
jmp 0x100b0e17
push 0
push 0x101308ac
lea ecx, [ebp - 0x8c]
call fcn.1000b940
push 0x1013deb0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.10007a50
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.10098a20
add esp, 0x14
mov ecx, dword [ebp - 0x90]
push eax
mov byte [ebp - 4], 4
lea ecx, [ecx + 8]
call fcn.10008310
mov edx, dword [ebp - 0x94]
or ebx, 0xffffffff
mov byte [ebp - 4], 3
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b0e80
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.10007e60
mov edx, dword [ebp - 0x8c]
mov eax, ebx
mov byte [ebp - 4], 0
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b0ea9
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.emType
lea ecx, [ebp - 0x28]
call fcn.10007a50
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 5
push eax
push esi
call fcn.100988c0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x28]
call fcn.10007e60
push str.nBagSize
lea ecx, [ebp - 0x28]
call fcn.10007a50
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 6
push eax
push esi
call fcn.100988c0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 0x18], eax
lea ecx, [ebp - 0x28]
call fcn.10007e60
push str.nIndex
lea ecx, [ebp - 0x28]
call fcn.10007a50
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
push esi
call fcn.100988c0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 0x14], eax
lea ecx, [ebp - 0x28]
call fcn.10007e60
push str.size
lea ecx, [ebp - 0x28]
call fcn.10007a50
push 0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
push esi
call fcn.100988c0
mov ecx, dword [ebp - 0x90]
add esp, 0xc
mov byte [ebp - 4], 0
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x28]
call fcn.10007e60
push 0x10130784
lea ecx, [ebp - 0x70]
call fcn.10007a50
push str.state
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 9
call fcn.10007a50
lea eax, [ebp - 0x70]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x58]
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.10098930
add esp, 0x10
lea ecx, [ebp - 0x58]
call fcn.10007e60
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xd
call fcn.10007e60
cmp dword [ebp - 0x30], 0
je 0x100b103f
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.10096b30
add esp, 8
test al, al
je 0x100b1033
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.100afeb0
add esp, 0xc
cmp dword [eax + 0x14], 8
mov byte [ebp - 4], 0xf
jb 0x100b1019
mov eax, dword [eax]
mov ecx, dword [ebp - 0x90]
push eax
lea ecx, [ecx + 0x20]
call fcn.10008380
lea ecx, [ebp - 0x88]
call fcn.1000c1c0
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0xd
call fcn.10007e60
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b115a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x8c], eax
cmp dword [ebp - 0x98], 0
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x10
jne 0x100b107f
mov eax, 0x101308ac
movzx eax, ax
push eax
call fcn.10008a30
jmp 0x100b108b
push 0
push 0x101308ac
call fcn.1000b940
push 0x10134e58
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x11
call fcn.10007a50
push 0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 0x12
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.10098a20
add esp, 0x14
mov ecx, dword [ebp - 0x90]
push eax
mov byte [ebp - 4], 0x13
lea ecx, [ecx + 0xc]
call fcn.10008310
mov edx, dword [ebp - 0x94]
mov eax, ebx
mov byte [ebp - 4], 0x12
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b10f1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x28]
call fcn.10007e60
mov edx, dword [ebp - 0x8c]
mov byte [ebp - 4], 0xd
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100b1118
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x40]
call fcn.10007e60
push esi
call fcn.10097510
add esp, 4
push edi
call fcn.100c49a1
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100c495f
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
int3