Function at 0x100b2b30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101b6c96
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x10247db0]
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.100ad4b0
movzx ecx, al
test ecx, ecx
jne 0x100b2b7e
xor al, al
jmp 0x100b2f64
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x124], 0
je 0x100b2ba9
push 0xc5
push 0x10206840
push str.load
push 0x10206948
call fcn.100a4d50
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 [0x101f118a]
mov byte [ebp - 0x114], al
push 0x103
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.1015cb20
add esp, 0xc
cmp dword [ebp - 0x140], 0
jle 0x100b2c88
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 0x100b2c38
jmp 0x100b2c3d
call fcn.1015a9e0
mov ecx, dword [ebp - 0x148]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.100451a0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.100b2630
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.100450b0
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.100a2e90
mov dword [ebp - 4], 1
jmp 0x100b2d08
lea ecx, [ebp - 0x16c]
call fcn.100a2ca0
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a2e60
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.100a2ce0
mov byte [ebp - 0x135], al
lea ecx, [ebp - 0x178]
call fcn.10051230
movzx edx, byte [ebp - 0x135]
test edx, edx
je 0x100b2d8b
lea ecx, [ebp - 0x16c]
call fcn.100a2cc0
mov ecx, dword [eax]
call fcn.100acb90
cmp eax, 4
jne 0x100b2d86
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0x15c]
add ecx, 1
mov edx, dword [ebp - 0x134]
mov dword [edx + 0x15c], ecx
jmp 0x100b2cfd
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.10051230
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xec]
and ecx, 0x10000
je 0x100b2f4f
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x15c], 0
jle 0x100b2f4f
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.10040b60
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.1015cb20
add esp, 0xc
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a2e90
mov dword [ebp - 4], 2
jmp 0x100b2e62
lea ecx, [ebp - 0x160]
call fcn.100a2ca0
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100a2e60
mov dword [ebp - 0x154], eax
lea edx, [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x154]
call fcn.100a2ce0
mov byte [ebp - 0x136], al
lea ecx, [ebp - 0x184]
call fcn.10051230
movzx eax, byte [ebp - 0x136]
test eax, eax
je 0x100b2f3d
lea ecx, [ebp - 0x160]
call fcn.100a2cc0
mov ecx, dword [eax]
call fcn.100acb90
cmp eax, 4
jne 0x100b2eeb
lea ecx, [ebp - 0x160]
call fcn.100a2cc0
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.100af9d0
cmp eax, dword [ebp - 0x13c]
je 0x100b2f29
push 0xe2
push 0x102068e0
push 0x102068c8
push 0x10206a08
call fcn.100a4d50
add esp, 0x10
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x100b2e57
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.10051230
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.10159b70
mov esp, ebp
pop ebp
ret 4