Function at 0x417090
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x108
mov eax, dword [0x478424]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
push ebx
mov bl, 5
mov byte [esp + 4], bl
mov byte [esp + 5], 1
mov byte [esp + 6], 0
je 0x4170f3
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x4170f3
mov dword [esi + 0x80], 0x300
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x417113
push 0
push pe_nt_image_headers32
lea edx, [esp + 0x10]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
je 0x417135
mov dword [esi + 0x80], 0x400
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp byte [esp + 8], bl
je 0x41715d
mov dword [esi + 0x80], 0x500
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov al, byte [esp + 9]
cmp al, 0xff
jne 0x417187
mov dword [esi + 0x80], 0x600
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
test al, al
je 0x4171b5
cmp al, 1
je 0x4171cd
cmp al, 2
je 0x4171ef
mov dword [esi + 0x80], 0x700
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov al, 1
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov dword [esi + 0x80], 0x800
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp dword [esi + 0x60], 0x10
mov ebx, dword [esi + 0x5c]
mov byte [esp + 8], 1
mov byte [esp + 9], bl
jb 0x417206
mov eax, dword [esi + 0x4c]
jmp 0x417209
lea eax, [esi + 0x4c]
push edi
push ebx
push eax
lea eax, [esp + 0x16]
push eax
call fcn.0044e1a0
lea edi, [ebx + 2]
mov ebx, dword [esi + 0x78]
mov byte [esp + edi + 0x18], bl
add esp, 0xc
add edi, 1
cmp dword [esi + 0x7c], 0x10
jb 0x417231
mov eax, dword [esi + 0x68]
jmp 0x417234
lea eax, [esi + 0x68]
push ebx
push eax
lea ecx, [esp + edi + 0x14]
push ecx
call fcn.0044e1a0
mov eax, dword [esi + 8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x417283
push 0
add ebx, edi
push ebx
lea edx, [esp + 0x14]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jne 0x417283
add dword [esi + 0x80], 0x900
pop edi
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x4172a3
push 0
push pe_nt_image_headers32
lea ecx, [esp + 0x14]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 2
je 0x4172c6
pop edi
mov dword [esi + 0x80], 0xa00
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp byte [esp + 0xc], 1
je 0x4172f0
pop edi
mov dword [esi + 0x80], 0xb00
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
cmp byte [esp + 0xd], 0
je 0x41731a
pop edi
mov dword [esi + 0x80], 0xc00
xor al, al
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00445276
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
pop edi
pop ebx
xor ecx, esp
mov al, 1
call fcn.00445276
add esp, 0x108
ret