Function at 0x10093180
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ad9f6
mov eax, dword fs:[0]
push eax
sub esp, 0x178
mov eax, dword [0x10226180]
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.1008d880
movzx ecx, al
test ecx, ecx
jne 0x100931ce
xor al, al
jmp 0x100935ba
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x124], 0
je 0x100931f9
push 0xbe
push 0x101ec538
push str.load
push 0x101ec5c8
call fcn.10051890
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 [0x101d14f3]
mov byte [ebp - 0x114], al
push 0x103
push 0
lea ecx, [ebp - 0x113]
push ecx
call fcn.10153ba0
add esp, 0xc
cmp dword [ebp - 0x140], 0
jle 0x100932db
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]
nop
mov eax, dword [ebp - 0x140]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0x104
jae 0x10093289
jmp 0x1009328f
call fcn.10151930
nop
mov ecx, dword [ebp - 0x148]
mov byte [ebp + ecx - 0x114], 0
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x130]
call fcn.10008f80
mov dword [ebp - 4], 0
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
call fcn.10092c70
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
call fcn.10008ea0
nop
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.100833d0
mov dword [ebp - 4], 1
jmp 0x1009335c
lea ecx, [ebp - 0x16c]
call fcn.100831d0
nop
lea eax, [ebp - 0x178]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100833a0
mov dword [ebp - 0x14c], eax
lea ecx, [ebp - 0x16c]
push ecx
mov ecx, dword [ebp - 0x14c]
call fcn.10083210
mov byte [ebp - 0x135], al
lea ecx, [ebp - 0x178]
call fcn.10014780
movzx edx, byte [ebp - 0x135]
test edx, edx
je 0x100933df
lea ecx, [ebp - 0x16c]
call fcn.100831f0
mov ecx, dword [eax]
call fcn.1008cf90
cmp eax, 4
jne 0x100933da
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0x15c]
add ecx, 1
mov edx, dword [ebp - 0x134]
mov dword [edx + 0x15c], ecx
jmp 0x10093350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.10014780
nop
mov eax, dword [ebp - 0x134]
mov ecx, dword [eax + 0xec]
and ecx, 0x10000
je 0x100935a5
mov edx, dword [ebp - 0x134]
cmp dword [edx + 0x15c], 0
jle 0x100935a5
mov eax, dword [ebp - 0x134]
mov eax, dword [eax + 0x15c]
mov ecx, 4
mul ecx
mov edx, 0xffffffff
cmovb eax, edx
push eax
call fcn.10004c30
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.10153ba0
add esp, 0xc
mov dword [ebp - 0x13c], 0
lea eax, [ebp - 0x160]
push eax
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100833d0
mov dword [ebp - 4], 2
jmp 0x100934b7
lea ecx, [ebp - 0x160]
call fcn.100831d0
nop
lea ecx, [ebp - 0x184]
push ecx
mov ecx, dword [ebp - 0x134]
add ecx, 0xd8
call fcn.100833a0
mov dword [ebp - 0x154], eax
lea edx, [ebp - 0x160]
push edx
mov ecx, dword [ebp - 0x154]
call fcn.10083210
mov byte [ebp - 0x136], al
lea ecx, [ebp - 0x184]
call fcn.10014780
movzx eax, byte [ebp - 0x136]
test eax, eax
je 0x10093592
lea ecx, [ebp - 0x160]
call fcn.100831f0
mov ecx, dword [eax]
call fcn.1008cf90
cmp eax, 4
jne 0x10093540
lea ecx, [ebp - 0x160]
call fcn.100831f0
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.1008fe70
cmp eax, dword [ebp - 0x13c]
je 0x1009357e
push 0xdb
push 0x101ec440
push 0x101ec4a4
push 0x101ec4bc
call fcn.10051890
add esp, 0x10
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
jmp 0x100934ab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x160]
call fcn.10014780
nop
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.10150c60
mov esp, ebp
pop ebp
ret 4