Function at 0x100b5f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101bae06
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x1024bdac]
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.100b07a0
movzx ecx, al
test ecx, ecx
jne 0x100b5fce
xor al, al
jmp 0x100b63b4
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x124], 0
je 0x100b5ff9
push 0xc5
push 0x1020a4a0
push str.load
push 0x1020a51c
call fcn.100a8090
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 [0x101f4ab7]
mov byte [ebp - 0x114], al
push 0x103
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.10157e80
add esp, 0xc
cmp dword [ebp - 0x140], 0
jle 0x100b60d8
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 0x100b6088
jmp 0x100b608d
call fcn.10155d20
mov ecx, dword [ebp - 0x148]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.10045f80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.100b5a80
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.10045ea0
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.100a6040
mov dword [ebp - 4], 1
jmp 0x100b6158
lea ecx, [ebp - 0x16c]
call fcn.100a5e50
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a6010
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.100a5e90
mov byte [ebp - 0x135], al
lea ecx, [ebp - 0x178]
call fcn.10053000
movzx edx, byte [ebp - 0x135]
test edx, edx
je 0x100b61db
lea ecx, [ebp - 0x16c]
call fcn.100a5e70
mov ecx, dword [eax]
call fcn.100afe90
cmp eax, 4
jne 0x100b61d6
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0x15c]
add ecx, 1
mov edx, dword [ebp - 0x134]
mov dword [edx + 0x15c], ecx
jmp 0x100b614d
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.10053000
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xec]
and ecx, 0x10000
je 0x100b639f
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x15c], 0
jle 0x100b639f
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.10041b20
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.10157e80
add esp, 0xc
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a6040
mov dword [ebp - 4], 2
jmp 0x100b62b2
lea ecx, [ebp - 0x160]
call fcn.100a5e50
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a6010
mov dword [ebp - 0x154], eax
lea edx, [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x154]
call fcn.100a5e90
mov byte [ebp - 0x136], al
lea ecx, [ebp - 0x184]
call fcn.10053000
movzx eax, byte [ebp - 0x136]
test eax, eax
je 0x100b638d
lea ecx, [ebp - 0x160]
call fcn.100a5e70
mov ecx, dword [eax]
call fcn.100afe90
cmp eax, 4
jne 0x100b633b
lea ecx, [ebp - 0x160]
call fcn.100a5e70
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.100b2ca0
cmp eax, dword [ebp - 0x13c]
je 0x100b6379
push 0xe2
push 0x1020a5a0
push 0x1020a6f0
push 0x1020a66c
call fcn.100a8090
add esp, 0x10
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x100b62a7
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.10053000
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.10154eb0
mov esp, ebp
pop ebp
ret 4