Function at 0x10b0de30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
mov ebx, dword [ebp + 8]
mov ecx, dword [ebx + 0x30]
xor eax, eax
cmp ecx, eax
push esi
push edi
mov dword [ebp - 0x20], eax
jle 0x10b0e2bc
mov dword [ebp - 8], eax
nop
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + eax + 0x44]
test edx, edx
jne 0x10b0e2a1
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
test eax, eax
je 0x10b0de70
mov eax, dword [edi]
jmp 0x10b0de75
mov eax, 0x10c10928
mov esi, dword [0x10c74bd0]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call esi
test eax, eax
jne 0x10b0de94
xor edi, edi
jmp 0x10b0dec8
mov eax, dword [edi + 4]
test eax, eax
je 0x10b0de9f
mov eax, dword [edi]
jmp 0x10b0dea4
mov eax, 0x10c10928
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call esi
add eax, 7
and eax, 0xfffffff8
add eax, 3
and eax, 0xfffffffc
call fcn.10b83a60
mov edi, esp
mov edx, dword [ebp + 0xc]
mov ecx, dword [edx + 4]
test ecx, ecx
je 0x10b0ded6
mov eax, dword [edx]
jmp 0x10b0dedb
mov eax, 0x10c10928
test ecx, ecx
je 0x10b0dee6
mov edx, dword [edx]
mov dword [ebp - 0x14], edx
jmp 0x10b0deed
mov dword [ebp - 0x14], 0x10c10928
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push eax
push 0
push 0
call esi
push 0
push 0
push eax
mov eax, dword [ebp - 0x14]
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
call esi
mov ecx, dword [ebp - 8]
mov eax, edi
mov edi, dword [ebx + 0x2c]
add edi, ecx
lea ebx, [ebx]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x10b0df44
test cl, cl
je 0x10b0df40
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x10b0df44
add edi, 2
add eax, 2
test cl, cl
jne 0x10b0df20
xor eax, eax
jmp 0x10b0df49
sbb eax, eax
sbb eax, reloc.ole32.dll_CoCreateGuid
test eax, eax
jne 0x10b0e2a1
lea eax, reloc.ole32.dll_CoCreateGuid
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp - 8]
mov eax, dword [ebx + 0x2c]
add eax, ecx
mov ecx, dword [eax + 0x48]
test ecx, ecx
je 0x10b0df75
lea edi, [ebx + 0x10]
mov dword [ebp - 0xc], edi
jmp 0x10b0df7d
lea edx, [ebx + 0xc]
mov dword [ebp - 0xc], edx
mov edi, edx
mov ecx, dword [edi]
cmp ecx, reloc.ole32.dll_CoCreateGuid
je 0x10b0e2a1
mov eax, dword [eax + 0x40]
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [edi]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10b0e2a1
cmp dword [ebp - 4], 4
jne 0x10b0e2a1
mov eax, dword [ebp - 0x1c]
test eax, eax
mov dword [ebp - 0x18], 0
jle 0x10b0e286
jmp 0x10b0dfe0
mov edi, dword [ebp - 0xc]
mov esi, dword [0x10c74bd0]
jmp 0x10b0dfe0
mov eax, dword [edi]
push 0
lea ecx, [ebp - 4]
push ecx
push 0x40
lea edx, [ebp - 0x60]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10b0e286
cmp dword [ebp - 4], 0x40
jne 0x10b0e286
mov ecx, dword [ebx + 0x24]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x14], eax
jle 0x10b0e11b
xor edi, edi
mov dword [ebp - 0x10], edi
jmp 0x10b0e027
mov esi, dword [0x10c74bd0]
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x20]
mov edx, dword [edi + ecx]
mov eax, dword [edx + 0x20]
mov ecx, dword [0x10cc9e5c]
mov eax, dword [ecx + eax*4]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
add eax, 0xc
push eax
push 0
push 0
call esi
test eax, eax
jne 0x10b0e055
xor esi, esi
jmp 0x10b0e08e
mov edx, dword [ebx + 0x20]
mov eax, dword [edi + edx]
mov ecx, dword [eax + 0x20]
mov edx, dword [0x10cc9e5c]
mov eax, dword [edx + ecx*4]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
add eax, 0xc
push eax
push 0
push 0
call esi
add eax, 7
and eax, 0xfffffff8
add eax, 3
and eax, 0xfffffffc
call fcn.10b83a60
mov esi, esp
mov eax, dword [ebx + 0x20]
mov ecx, dword [edi + eax]
mov edx, dword [ecx + 0x20]
mov eax, dword [0x10cc9e5c]
mov edi, dword [eax + edx*4]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
add edi, 0xc
push edi
push 0
push 0
call dword [0x10c74bd0]
push 0
push 0
push eax
push esi
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [0x10c74bd0]
lea eax, [ebp - 0x60]
lea ecx, [ecx]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x10b0e0f4
test cl, cl
je 0x10b0e0f0
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x10b0e0f4
add eax, 2
add esi, 2
test cl, cl
jne 0x10b0e0d0
xor eax, eax
jmp 0x10b0e0f9
sbb eax, eax
sbb eax, reloc.ole32.dll_CoCreateGuid
test eax, eax
je 0x10b0e118
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x24]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
jl 0x10b0e01e
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebx + 0x24]
jne 0x10b0e133
push 0x14
push 1
lea ecx, [ebx + 0x20]
call fcn.109044e0
mov esi, eax
mov dword [ebp - 0x10], esi
jmp 0x10b0e138
mov dword [ebp - 0x10], eax
mov esi, eax
mov edi, dword [0x10c74bc0]
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x60]
push eax
push 0
push 0
call edi
shl eax, 1
test eax, eax
jne 0x10b0e159
mov dword [ebp - 0x14], eax
jmp 0x10b0e17e
push 0
push 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
call edi
lea eax, [eax + eax + 7]
and eax, 0xfffffff8
add eax, 3
and eax, 0xfffffffc
call fcn.10b83a60
mov dword [ebp - 0x14], esp
push 0
push 0
push 0xffffffffffffffff
lea edx, [ebp - 0x60]
push edx
push 0
push 0
call edi
push eax
mov eax, dword [ebp - 0x14]
push eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x60]
push ecx
push 0
push 0
call edi
mov edx, dword [ebp - 0x14]
lea edi, [ebx + 0x20]
mov ebx, dword [edi]
push 0
lea esi, [esi + esi*4]
push 0xffffffffffffffff
shl esi, 2
push 0x10cbe700
add ebx, esi
call fcn.10917630
add esp, 0xc
push 0
mov dword [ebx], eax
mov eax, dword [edi]
mov ebx, dword [ebp - 0xc]
lea edx, [ebp - 4]
push edx
mov edx, dword [ebx]
push 4
lea ecx, [esi + eax + 4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10b0e254
cmp dword [ebp - 4], 4
jne 0x10b0e254
mov ecx, dword [edi]
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx]
push 4
lea edx, [esi + ecx + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10b0e254
cmp dword [ebp - 4], 4
jne 0x10b0e254
mov edx, dword [edi]
push 0
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebx]
push 4
lea eax, [esi + edx + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10b0e254
cmp dword [ebp - 4], 4
jne 0x10b0e254
mov eax, dword [edi]
push 0
lea edx, [ebp - 4]
push edx
mov edx, dword [ebx]
push 4
lea ecx, [esi + eax + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10b0e254
cmp dword [ebp - 4], 4
jne 0x10b0e254
mov eax, 1
jmp 0x10b0e256
xor eax, eax
mov ecx, dword [edi]
cmp dword [esi + ecx], 0
je 0x10b0e262
test eax, eax
jne 0x10b0e271
mov edx, dword [ebp - 0x10]
push 0x14
push 1
push edx
mov ecx, edi
call fcn.109119c0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp + 8]
inc eax
cmp eax, ecx
mov dword [ebp - 0x18], eax
jl 0x10b0dfd2
lea eax, reloc.ole32.dll_CoCreateGuid
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [ebp - 8]
mov dword [ecx + eax + 0x44], 1
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 8]
mov ecx, dword [ebx + 0x30]
inc eax
add edx, 0x4c
cmp eax, ecx
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], edx
jl 0x10b0de50
mov eax, 1
lea esp, [ebp - 0x6c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8