Function at 0x1009c9e0
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 0x1009cca4
push 0x230
call fcn.100a7f77
add esp, 4
mov esi, eax
test esi, esi
push ebp
jne 0x1009ca3b
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.1009cd20
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
jne 0x1009ca69
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.100a7e8e
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.100a856e
mov edi, eax
add esp, 8
test edi, edi
je 0x1009ca4d
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [edi + 4]
push ebx
push eax
call esi
lea ecx, [edi + 0x108]
push 0x1010ab19
push ecx
call esi
mov edx, dword [edi + 0x20c]
shl edx, 4
push edx
call fcn.100a7f77
mov esi, eax
add esp, 4
test esi, esi
mov dword [esp + 0x20], esi
jne 0x1009cad4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100a7e8e
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 0x1009cb0d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100a7e8e
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 0x1009cb3c
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.100a7e8e
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 0x1009cbe7
add esi, 8
lea ebx, [edi + 0x21c]
mov eax, dword [esi]
push eax
call fcn.100a7f77
add esp, 4
mov dword [ebx], eax
test eax, eax
je 0x1009cc0a
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 0x1009cc30
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 0x1009cc56
mov eax, dword [esp + 0x10]
mov ecx, dword [esi]
cmp eax, ecx
jne 0x1009cc7c
lea ecx, [ebx - 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.1009ccb0
test eax, eax
je 0x1009cc8a
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 0x1009cb55
mov esi, dword [esp + 0x20]
push esi
call fcn.100a7e8e
push 0
call fcn.100a7e8e
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.100a7e8e
mov edx, dword [esp + 0x24]
push edx
call fcn.100a7e8e
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.100a7e8e
mov eax, dword [esp + 0x24]
push eax
call fcn.100a7e8e
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.100a7e8e
mov ecx, dword [esp + 0x24]
push ecx
call fcn.100a7e8e
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 0x1009cc96
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x20]
push eax
call fcn.100a7e8e
push edi
call fcn.100a7e8e
add esp, 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret 4