Function at 0x1b43650a
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x1018
call fcn.1b415ab0
mov eax, dword [0x1b44b010]
xor eax, esp
mov dword [esp + 0x1014], eax
mov eax, dword [esp + 0x101c]
mov ecx, dword [eax + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x1028]
cmp ebp, 0xd698
push esi
lea esi, [eax + 0x210]
mov eax, dword [esi + 0x14]
push edi
mov dword [esp + 0x18], ecx
jne 0x1b43655b
cmp eax, 4
jle 0x1b436565
mov ecx, 4
jmp 0x1b436567
cmp eax, 2
mov ecx, 2
jg 0x1b436567
mov ecx, eax
mov edx, dword [esi]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
sub eax, ecx
push eax
push edx
mov dword [esp + 0x20], ecx
call ebx
cmp eax, 0xffffffff
je 0x1b43673c
mov ecx, dword [esp + 0x10]
push 0
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi]
push ecx
lea edx, [esp + 0x30]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1b436743
mov ecx, dword [esp + 0x14]
cmp ecx, dword [esp + 0x10]
jne 0x1b436743
mov edx, dword [esi + 0x10]
push edx
lea ecx, [esp + 0x14]
push ecx
lea eax, [esi + 0x24]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ebp
call fcn.1b41135d
test eax, eax
jne 0x1b436743
mov ecx, dword [esp + 0x10]
movzx eax, word [esi + ecx*2 + 0x22]
cmp ax, 0xa
je 0x1b4365f6
cmp ax, 0xd
je 0x1b4365f6
xor edi, edi
jmp 0x1b4365fb
mov edi, 1
mov edx, dword [esi + 0x14]
push 0x1000
push edx
call fcn.1b43de1c
add esp, 8
push 0
shl eax, 0xc
push 0
push eax
mov dword [esi + 0x2080], eax
mov eax, dword [esi]
push eax
mov dword [esp + 0x30], edx
call ebx
cmp eax, 0xffffffff
je 0x1b43673c
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x2080]
push 0
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
push edx
lea eax, [esp + 0x30]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1b436743
mov edx, dword [esi + 0x14]
sub edx, dword [esi + 0x2080]
cmp dword [esp + 0x14], edx
jne 0x1b436743
push ebp
call fcn.1b415aed
neg eax
sbb eax, eax
and eax, 0x1000
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x14]
push ecx
lea eax, [esi + 0x24]
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ebp
call fcn.1b41135d
test eax, eax
jne 0x1b436743
test edi, edi
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x2084], ecx
jne 0x1b436746
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x202c], edi
mov edx, dword [ebx + 0x44]
lea edi, [ebx + 0x44]
push eax
push edx
add ebx, 0x3a
push ebx
call fcn.1b4363f4
test eax, eax
jl 0x1b436746
push 0
push ebp
call fcn.1b4362e2
test eax, eax
jl 0x1b436746
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
push ebx
push ebp
mov dword [esp + 0x24], 0
call fcn.1b415bd6
test eax, eax
jl 0x1b436746
mov edx, dword [esp + 0x10]
add dword [esi + 0x14], edx
mov eax, dword [esi + 0x14]
push 0x1000
push eax
mov edi, 1
call fcn.1b43de1c
add esp, 8
push 0
shl eax, 0xc
push 0
mov dword [esi + 0x2080], eax
mov ecx, dword [esi]
push eax
push ecx
mov dword [esp + 0x30], edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1b43662c
mov eax, 0xfffffc02
jmp 0x1b436746
or eax, 0xffffffff
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1b41133e
add esp, 0x1018
ret 8