Function at 0x1000e2a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
push ebx
mov ebx, dword [esp + 0x14]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 0
mov edi, ecx
push closesocket
push ebx
mov dword [esp + 0x34], edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x1000e564
push 0x230
call fcn.10019737
add esp, 4
mov esi, eax
test esi, esi
push ebp
jne 0x1000e2fb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4
mov ecx, edi
call fcn.1000e5e0
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
jne 0x1000e329
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.1001964e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
shl eax, 5
add eax, 0x210
push eax
push esi
call fcn.10019871
mov edi, eax
add esp, 8
test edi, edi
je 0x1000e30d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 4]
push ebx
push eax
call esi
lea ecx, [edi + 0x108]
push 0x10048030
push ecx
call esi
mov edx, dword [edi + 0x20c]
shl edx, 4
push edx
call fcn.10019737
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x20], esi
jne 0x1000e394
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001964e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov ecx, dword [edi + 0x20c]
lea eax, [esp + 0x10]
push 0
push eax
shl ecx, 4
push ecx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1000e3cd
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001964e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
mov eax, dword [edi + 0x20c]
mov ecx, dword [esp + 0x10]
mov edx, eax
shl edx, 4
cmp ecx, edx
je 0x1000e3fc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001964e
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
test eax, eax
mov dword [esp + 0x14], 0
jbe 0x1000e4a7
add esi, 8
lea ebx, [edi + 0x21c]
mov eax, dword [esi]
push eax
call fcn.10019737
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x1000e4ca
mov ecx, dword [esi]
push 0
mov dword [ebx + 4], ecx
mov edx, dword [esi + 4]
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000e4f0
mov ecx, dword [esi]
mov edx, dword [ebx]
lea eax, [esp + 0x10]
push 0
push eax
push ecx
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000e516
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
cmp eax, ecx
jne 0x1000e53c
lea ecx, [ebx - 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1000e570
test eax, eax
je 0x1000e54a
mov eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x20c]
inc eax
add esi, 0x10
add ebx, 0x20
cmp eax, ecx
mov dword [esp + 0x14], eax
jb 0x1000e415
mov esi, dword [esp + 0x20]
push esi
call fcn.1001964e
push 0
call fcn.1001964e
add esp, 8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001964e
mov edx, dword [esp + 0x24]
push edx
call fcn.1001964e
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001964e
mov eax, dword [esp + 0x24]
push eax
call fcn.1001964e
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.1001964e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.1001964e
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x20]
push edx
jmp 0x1000e556
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
push eax
call fcn.1001964e
push edi
call fcn.1001964e
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4