Function at 0x623c75c3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x74
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x34]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x623c760e
mov eax, 0
jmp 0x623c7840
mov eax, dword [ebp - 0x50]
and eax, 2
test eax, eax
jne 0x623c76be
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__get_osfhandle]
call eax
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
add eax, ecx
adc edx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
cmp dword [ebp - 0x48], 0xffffffff
je 0x623c7837
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov eax, edx
xor edx, edx
mov edx, eax
mov eax, dword [ebp - 0x48]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], edx
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call eax
sub esp, 0x18
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0xffffffff
je 0x623c76be
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x44]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov eax, dword [ebp + 8]
movzx edx, byte [eax + 0xc]
or edx, 2
mov byte [eax + 0xc], dl
jmp 0x623c7830
mov dword [esp + 0xc], 1
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dbg.lseek64
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_malloc_
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x623c783a
cmp dword [ebp - 0x14], 0
jns 0x623c772a
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_free_
jmp 0x623c783b
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dbg.lseek64
test edx, edx
jns 0x623c7799
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_free_
jmp 0x623c783b
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x38]
sub edx, eax
mov eax, edx
mov ecx, eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
add eax, edx
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sym._read
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 0
jle 0x623c77ab
mov eax, dword [ebp - 0x54]
cdq
add dword [ebp - 0x38], eax
adc dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x30]
mov eax, edx
sbb eax, dword [ebp - 0x2c]
jl 0x623c775f
jmp 0x623c77ac
nop
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
mov dword [esp + 0xc], 0
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dbg.lseek64
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0x54], 0
js 0x623c77fb
cmp dword [ebp - 0x54], 0
jne 0x623c7814
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp dword [ebp - 0x38], eax
sbb ecx, edx
jge 0x623c7814
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_free_
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov edx, dword [ebp - 0x3c]
mov dword [eax], edx
jmp 0x623c783b
cmp dword [ebp - 0xc], 0
jns 0x623c7827
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call sym.libevent_2_1_6.dll_event_mm_free_
jmp 0x623c783b
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x40]
mov dword [eax + 0x1c], edx
mov eax, 0
jmp 0x623c7840
nop
jmp 0x623c783b
nop
mov eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret