Function at 0x100023c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x28]
add eax, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
jne 0x100023e6
jmp 0x10002433
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x100023fa
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
jmp 0x10002433
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
cmp dword [eax + 0x10], 0
je 0x10002411
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 4], edx
jmp 0x100023fa
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 4]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 0x28]
add ecx, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 4], 0
je 0x100026a0
mov edx, dword [ebp - 4]
mov dword [edx + 0x10], 0
mov eax, 1
test eax, eax
je 0x100026a0
mov ecx, dword [ebp - 4]
cmp dword [ecx + 4], 8
jne 0x10002699
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov ecx, dword [ebp - 4]
add eax, dword [ecx + 0x11c]
push eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.msvcrt.dll_realloc]
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x100024fa
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
add eax, 1
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 4]
push edx
push str.Out_of_memory
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.100027d0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x28]
add edx, 0x28
push edx
mov ecx, dword [ebp - 0x28]
call fcn.100026f0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], ecx
jmp 0x100026a0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 0x11c]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
push 0
push 0xa7
push 3
push 0
push 1
push connect
mov ecx, dword [ebp - 4]
add ecx, 0x14
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x100025c2
push 0
call fcn.10005de0
add esp, 4
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x30]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.100027d0
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x10002594
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x28]
add eax, 0x28
push eax
mov ecx, dword [ebp - 0x28]
call fcn.100026f0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
jmp 0x100026a0
push 0
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x118]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x11c]
push edx
mov eax, dword [ebp - 4]
add eax, 0x120
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000268f
push 0
call fcn.10005de0
add esp, 4
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 0x28]
mov eax, dword [edx + 4]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 4]
add edx, 1
mov eax, dword [ebp - 0x28]
mov dword [eax + 4], edx
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x34]
push edx
mov ecx, dword [ebp - 0x28]
call fcn.100027d0
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], 0
je 0x1000265a
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x28]
add ecx, 0x28
push ecx
mov ecx, dword [ebp - 0x28]
call fcn.100026f0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
jmp 0x100026a0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100026a0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4