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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x209c
call fcn.004bf520
mov eax, dword [0x586f0c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebx + 0x24], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x2088], eax
lea eax, [ebx + 0xc]
push esi
mov esi, dword [ebx + 0xc4]
push edi
mov dword [ebp - 0x2094], esi
mov dword [ebp - 0x209c], 0
mov dword [ebp - 0x2098], 0x8ffff
mov dword [ebp - 0x208c], eax
mov dword [ebp - 0x2090], ecx
jne 0x413e93
mov edx, dword [ebx + 0x28]
mov dword [ebp - 0x2098], edx
mov eax, dword [esi + 0x134]
test eax, eax
jne 0x414075
lea eax, [ebp - 0x2088]
push eax
mov eax, dword [esi]
lea ecx, [ebp - 0x2084]
push ecx
push 0
push 0x2000
lea edx, [ebp - 0x2004]
push edx
push eax
mov dword [ebp - 0x2088], 0x80
call dword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
cmp edi, 0xffffffff
jne 0x413f18
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 0x2736
jne 0x413ff6
mov eax, dword [esi]
push 0x2000
lea edx, [ebp - 0x2004]
xor ecx, ecx
push edx
push eax
mov word [ebp - 0x2084], cx
mov dword [ebp - 0x2088], ecx
call fcn.004d5697
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
je 0x413ff6
mov eax, dword [ebp - 0x2088]
test eax, eax
jle 0x413f66
cmp eax, 0x80
jbe 0x413f46
push 0x28d
push str.src_nsock_core.c
push str.peerlen___sizeof_iod__peer_
call fcn.004becc9
mov eax, dword [ebp - 0x2088]
add esp, 0xc
push eax
lea ecx, [ebp - 0x2084]
push ecx
lea edx, [esi + 0x20]
push edx
call fcn.004bdfc0
mov eax, dword [ebp - 0x2088]
add esp, 0xc
mov dword [esi + 0x124], eax
test edi, edi
jle 0x413faf
mov esi, dword [ebp - 0x208c]
lea ecx, [ebp - 0x2004]
push ecx
call fcn.00412b70
add esp, 4
cmp eax, 0xffffffff
je 0x414047
mov edx, dword [ebp - 0x2098]
mov eax, esi
cmp dword [eax], edx
jg 0x414133
cmp edi, 0x2000
jb 0x414133
mov esi, dword [ebp - 0x2094]
jmp 0x413ea1
cmp edi, 0xffffffff
je 0x414017
test edi, edi
jne 0x41412d
mov edx, dword [ebp - 0x208c]
mov eax, dword [edx]
mov ecx, 1
mov dword [ebx + 0xd0], ecx
mov dword [ebx + 0xc0], ecx
test eax, eax
jle 0x4141cd
sub eax, dword [ebp - 0x2090]
pop edi
mov dword [ebx + 8], ecx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
call sub.WS2_32.dll_WSAGetLastError
mov dword [ebp - 0x209c], eax
cmp eax, 0x2714
je 0x41412d
cmp eax, 0x2733
je 0x41412d
mov eax, dword [ebp - 0x209c]
pop edi
mov dword [ebx + 0xbc], eax
mov dword [ebx + 0xd0], 1
mov dword [ebx + 8], 2
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
pop edi
mov dword [ebx + 0xd0], 1
mov dword [ebx + 8], 2
mov dword [ebx + 0xbc], 0x2747
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
push 0x2000
lea ecx, [ebp - 0x2004]
push ecx
push eax
call fcn.0049e330
mov edi, eax
add esp, 0xc
test edi, edi
jle 0x4140e7
mov esi, dword [ebp - 0x208c]
lea edx, [ebp - 0x2004]
push edx
call fcn.00412b70
add esp, 4
cmp eax, 0xffffffff
je 0x414047
mov ecx, dword [ebp - 0x2098]
mov eax, esi
cmp dword [eax], ecx
jg 0x414133
mov eax, dword [ebp - 0x2094]
mov ecx, dword [eax + 0x134]
push 0x2000
lea edx, [ebp - 0x2004]
push edx
push ecx
call fcn.0049e330
mov edi, eax
add esp, 0xc
test edi, edi
jg 0x414090
mov esi, dword [ebp - 0x2094]
cmp edi, 0xffffffff
jne 0x413fb4
mov edx, dword [esi + 0x134]
push edi
push edx
call fcn.004a0c60
mov ecx, 2
add esp, 8
cmp eax, ecx
jne 0x41414b
mov esi, dword [ebp - 0x2088]
mov eax, esi
mov edi, ebx
call fcn.00412fc0
mov eax, dword [ebp - 0x2094]
call fcn.00412d70
mov dword [ebx + 0xb8], 2
mov eax, dword [ebp - 0x208c]
mov eax, dword [eax]
sub eax, dword [ebp - 0x2090]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x414176
mov esi, dword [ebp - 0x2088]
mov eax, esi
mov edi, ebx
call fcn.00412fc0
mov eax, dword [ebp - 0x2094]
call fcn.00412e90
mov dword [ebx + 0xb8], 3
jmp 0x41412d
mov edi, dword [ebp - 0x2088]
mov dword [ebx + 0xd0], 1
mov dword [ebx + 8], ecx
mov dword [ebx + 0xbc], 0x277b
cmp dword [edi + 0x6e8], ecx
jle 0x4141ba
mov ecx, dword [esi + 0x13c]
push ecx
push eax
call fcn.0041a890
add esp, 4
push eax
push str.SSL_read___failed_for_reason__s_on_NSI__li
push edi
call fcn.00413290
add esp, 0x10
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004bf32e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov dword [ebx + 8], 6
xor eax, eax
pop esi
call fcn.004bf32e
mov esp, ebp
pop ebp
ret