Function at 0x100b1310
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101afd56
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x10245db0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x134], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.100abc90
movzx ecx, al
test ecx, ecx
jne 0x100b135e
xor al, al
jmp 0x100b1744
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x124], 0
je 0x100b1389
push 0xc5
push 0x101ffdb0
push str.load
push 0x101ffd5c
call fcn.100a3500
add esp, 0x10
mov dword [ebp - 0x140], 0
push 0
lea eax, [ebp - 0x144]
push eax
push 4
lea ecx, [ebp - 0x140]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov al, byte [0x101e9652]
mov byte [ebp - 0x114], al
push 0x103
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.101571d0
add esp, 0xc
cmp dword [ebp - 0x140], 0
jle 0x100b1468
push 0
lea edx, [ebp - 0x144]
push edx
mov eax, dword [ebp - 0x140]
push eax
lea ecx, [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0x104
jae 0x100b1418
jmp 0x100b141d
call fcn.10155090
mov ecx, dword [ebp - 0x148]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.100450b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.100b0e10
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.10044fc0
push 0
lea ecx, [ebp - 0x144]
push ecx
push 0x10
mov edx, dword [ebp - 0x134]
add edx, 0x144
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [ebp - 0x144]
push ecx
push 4
mov edx, dword [ebp - 0x134]
add edx, 0x158
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 0x134]
mov dword [ecx + 0x15c], 0
lea edx, [ebp - 0x16c]
push edx
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a1710
mov dword [ebp - 4], 1
jmp 0x100b14e8
lea ecx, [ebp - 0x16c]
call fcn.100a1520
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a16e0
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.100a1560
mov byte [ebp - 0x135], al
lea ecx, [ebp - 0x178]
call fcn.100504f0
movzx edx, byte [ebp - 0x135]
test edx, edx
je 0x100b156b
lea ecx, [ebp - 0x16c]
call fcn.100a1540
mov ecx, dword [eax]
call fcn.100ab330
cmp eax, 4
jne 0x100b1566
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0x15c]
add ecx, 1
mov edx, dword [ebp - 0x134]
mov dword [edx + 0x15c], ecx
jmp 0x100b14dd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.100504f0
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xec]
and ecx, 0x10000
je 0x100b172f
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x15c], 0
jle 0x100b172f
xor ecx, ecx
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0x15c]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10040bc0
add esp, 4
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x150]
mov dword [eax + 0x164], ecx
mov edx, dword [ebp - 0x134]
mov eax, dword [edx + 0x15c]
shl eax, 2
push eax
push 0
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0x164]
push edx
call fcn.101571d0
add esp, 0xc
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a1710
mov dword [ebp - 4], 2
jmp 0x100b1642
lea ecx, [ebp - 0x160]
call fcn.100a1520
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a16e0
mov dword [ebp - 0x154], eax
lea edx, [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x154]
call fcn.100a1560
mov byte [ebp - 0x136], al
lea ecx, [ebp - 0x184]
call fcn.100504f0
movzx eax, byte [ebp - 0x136]
test eax, eax
je 0x100b171d
lea ecx, [ebp - 0x160]
call fcn.100a1540
mov ecx, dword [eax]
call fcn.100ab330
cmp eax, 4
jne 0x100b16cb
lea ecx, [ebp - 0x160]
call fcn.100a1540
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0x164]
mov ecx, dword [ebp - 0x13c]
mov eax, dword [eax]
mov dword [edx + ecx*4], eax
mov ecx, dword [ebp - 0x134]
mov edx, dword [ecx + 0x164]
mov eax, dword [ebp - 0x13c]
mov ecx, dword [edx + eax*4]
call fcn.100ae1b0
cmp eax, dword [ebp - 0x13c]
je 0x100b1709
push 0xe2
push 0x101ffe80
push 0x101ffe68
push 0x101ffe54
call fcn.100a3500
add esp, 0x10
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x100b1637
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.100504f0
mov edx, dword [ebp - 0x134]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x134]
mov edx, dword [eax + 0x70]
call edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10154220
mov esp, ebp
pop ebp
ret 4