Function at 0x1001edd0
Capabilities:
Read file on windows
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
xor edi, edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov edx, esi
mov dword [ebp - 8], edx
test esi, esi
je 0x1001f08c
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [eax]
test eax, eax
je 0x1001ee20
push 1
push edi
push ecx
push ebx
push 2
push esi
call eax
mov edi, eax
add esp, 0x18
test edi, edi
jle 0x1001f08e
mov ecx, dword [ebp + 8]
mov edx, esi
nop dword [eax]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x1001ee34
cmp byte [esi + 0x50], 3
je 0x1001ee34
mov esi, eax
jmp 0x1001ee20
mov ecx, dword [ebp + 8]
test edi, edi
js 0x1001f06f
mov eax, dword [esi + 4]
test eax, eax
je 0x1001ee5a
mov eax, dword [eax + 0x108]
test eax, eax
je 0x1001ee5a
push ecx
push ebx
push esi
call eax
add esp, 0xc
jmp 0x1001f04e
movzx eax, byte [esi + 0x50]
add eax, 0xfffffffe
cmp eax, 6
ja case.default.0x1001ee6a
jmp dword [eax*4 + 0x1001f098]
mov ecx, dword [ebp - 4]
test ecx, ecx
jle 0x1001f056
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ecx
push eax
mov edx, ecx
mov ecx, ebx
push ebx
call fcn.1005ca50
mov edi, dword [ebp - 0x10]
add esp, 8
test eax, eax
mov eax, 0xffffffff
cmovne edi, eax
jmp 0x1001f050
push ecx
lea edx, [ebp - 0x14]
mov ecx, esi
call fcn.1001f6b0
mov edi, eax
add esp, 4
test edi, edi
jle 0x1001f050
push edi
push dword [ebp - 0x14]
push ebx
call fcn.1007e990
add esp, 0xc
jmp 0x1001f050
push ecx
mov edx, ebx
mov ecx, esi
call fcn.1001ec70
add esp, 4
jmp 0x1001f04e
mov eax, dword [esi + 0x18]
test eax, eax
je 0x1001eef7
push eax
push ecx
push 1
push ebx
call fcn.10095e0b
add esp, 0x10
jmp 0x1001f04e
mov edi, 0xffffff52
jmp case.default.0x1001ee6a
cmp dword [edx + 0x48], 0
jne 0x1001efbc
and dword [esi + 0x4c], 0xffffffef
mov edi, dword [esi + 0x18]
test edi, edi
je 0x1001ef6d
mov eax, dword [edi + 0x428]
test eax, eax
je 0x1001ef34
push 1
push 4
push edi
call eax
add esp, 0xc
mov dword [edi + 0x42c], 4
test ebx, ebx
je 0x1001ef6d
mov eax, dword [ebp + 8]
test eax, eax
js 0x1001ef6d
push ecx
push eax
mov edx, ebx
mov ecx, edi
call fcn.10030ae0
mov edi, eax
add esp, 8
test edi, edi
jns 0x1001ef58
or edi, 0xffffffff
jmp 0x1001ef72
jne 0x1001f050
mov eax, dword [ebp - 8]
mov dword [eax + 0x48], 1
jmp 0x1001f050
mov edi, 0xffffff53
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1001ef5e
mov eax, dword [ecx + 0x1e0]
cmp eax, 0xfffffebd
je 0x1001efb3
cmp eax, 0xfffffeb9
je 0x1001efb3
cmp eax, 0xfffffea9
je 0x1001ef5e
mov edx, 0x2000
test word [ecx + 0x3de], dx
jne 0x1001ef5e
cmp eax, 0xfffffe73
je 0x1001ef5e
cmp eax, 2
je 0x1001efb3
cmp eax, 3
jne 0x1001ef5e
or dword [esi + 0x4c], 0x10
jmp 0x1001f050
or edi, 0xffffffff
jmp case.default.0x1001ee6a
mov ebx, dword [esi + 0x18]
test ebx, ebx
je 0x1001f026
cmp dword [ebx + 0x230], 0
jne 0x1001f002
cmp dword [0x100a32c0], 0
mov eax, 0x100a32b8
je 0x1001eff5
mov ecx, dword [ebx + 0x228]
cmp ecx, dword [eax]
je 0x1001f021
add eax, 0xc
cmp dword [eax + 8], 0
jne 0x1001efe8
mov eax, dword [ebx + 0x228]
cmp eax, 0x357
jne 0x1001f026
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x1001f039
cmp dword [ebx + 0x230], 0
mov ecx, ebx
push edi
je 0x1001f02c
call fcn.1003b760
add esp, 4
test eax, eax
jmp 0x1001f037
mov eax, dword [eax + 4]
jmp 0x1001effb
mov edx, dword [ebp - 0xc]
mov ecx, ebx
push edi
call fcn.100185c0
add esp, 4
cmp eax, 1
je 0x1001f03c
or edi, 0xffffffff
mov ebx, dword [ebp - 0xc]
jmp 0x1001f050
push 0
push ecx
push ebx
push dword [esi + 0x44]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
cmp esi, edx
je 0x1001f06f
mov esi, dword [esi + 8]
test edi, edi
mov eax, edi
cmovle eax, ecx
mov dword [ebp - 4], eax
test esi, esi
jne 0x1001ee31
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
test eax, eax
je 0x1001f08c
push edi
push 0
push dword [ebp + 8]
push ebx
push 0x82
push edx
call eax
add esp, 0x18
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret