Function at 0x401730
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
sub esp, 0xa4
mov eax, dword [0x4130a0]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb0]
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0xbc]
push edx
push eax
mov dword [esp + 0x38], 0x10
mov dword [esp + 0x30], 0xbb8
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
test edi, edi
jge 0x4017af
push str.accept_error_n
call fcn.00402be4
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00402600
add esp, 0xa4
ret
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [esp + 0x28]
push ecx
push 0x1005
push 0xffff
push edi
call esi
push 4
lea edx, [esp + 0x28]
push edx
push 0x1006
push 0xffff
push edi
call esi
mov esi, dword [sym.imp.WS2_32.dll_recv]
push 0
push 0x14
lea eax, [esp + 0x18]
push eax
push edi
call esi
test eax, eax
jg 0x401822
push 0x410dbc
call fcn.00402be4
add esp, 4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00402600
add esp, 0xa4
ret
cmp byte [esp + 0x10], 0x3c
jne 0x401854
push 0
push 0xa5
push str.__xml_version1.0____cross_domain_policy__site_control_permitted_cross_domain_policies_all_____allow_access_from_domain___to_ports_______cross_domain_policy_
push edi
call dword [sym.imp.WS2_32.dll_send]
push 0
push 3
lea ecx, [esp + 0x48]
push ecx
push edi
call esi
push 0
push 0x14
lea edx, [esp + 0x18]
push edx
push edi
call esi
test eax, eax
jg 0x40185f
push str.recv_error_n
jmp 0x4017f8
lea esi, [esp + 0x10]
call fcn.004010c0
mov eax, dword [esp + 0x18]
sub eax, 0
je 0x40188a
sub eax, 1
jne 0x401800
mov dword [ebp + 4], edi
cmp dword [ebp + 8], eax
je 0x401949
mov dword [ebp + 8], eax
jmp 0x401949
mov eax, dword [ebp]
test eax, eax
jle 0x4018d2
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov esi, dword [ebx]
xor eax, eax
test esi, esi
jbe 0x4018d2
mov edx, dword [ebp]
lea ecx, [ebx + 4]
cmp dword [ecx], edx
je 0x4018b4
inc eax
add ecx, 4
cmp eax, esi
jb 0x4018a6
jmp 0x4018d2
dec esi
cmp eax, esi
jae 0x4018d0
lea ecx, [ebx + eax*4 + 4]
lea ecx, [ecx]
mov edx, dword [ecx + 4]
mov dword [ecx], edx
mov edx, dword [ebx]
inc eax
dec edx
add ecx, 4
cmp eax, edx
jb 0x4018c0
dec dword [ebx]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
push 1
mov dword [ebp], edi
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0
call esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
push eax
call esi
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x14]
push edx
mov dword [esp + 0x1c], eax
call esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
push eax
call esi
push 0
push 0x14
lea ecx, [esp + 0x18]
push ecx
push edi
mov dword [esp + 0x20], eax
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp + 4], 0
jge 0x401949
push str.igoAssistant.exe
mov dword [ebp + 8], 1
call fcn.004016c0
add esp, 4
mov edx, dword [ebx]
xor eax, eax
test edx, edx
jbe 0x401960
lea ecx, [ebx + 4]
cmp dword [ecx], edi
je 0x401960
inc eax
add ecx, 4
cmp eax, edx
jb 0x401954
cmp eax, edx
jne 0x40196f
cmp edx, 0x40
jae 0x40196f
mov dword [ebx + eax*4 + 4], edi
inc dword [ebx]
mov eax, dword [esp + 0x28]
cmp dword [eax], edi
jge 0x401979
mov dword [eax], edi
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
xor ecx, esp
xor eax, eax
call fcn.00402600
add esp, 0xa4
ret