Function at 0x43fee0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x13c
mov eax, dword [0x535df0]
xor eax, esp
mov dword [esp + 0x138], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, edx
mov edx, dword [esi]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x14], eax
xor eax, eax
mov dword [esp + 0x130], edx
mov edx, dword [esi + 8]
mov dword [esp + 0x134], ecx
mov ecx, dword [esi + 0xc]
mov dword [esi], eax
push edi
mov edi, dword [ebp + 8]
mov dword [esi + 4], eax
mov dword [esp + 0x13c], edx
mov edx, dword [ebp + 0x14]
mov dword [esi + 8], eax
mov dword [esp + 0x10], eax
mov dword [esi + 0xc], eax
push 1
push edx
mov eax, edi
mov dword [esp + 0x148], ecx
call fcn.0043fcb0
add esp, 8
add edi, 1
mov dword [esp + 0x1c], edi
nop
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
xor eax, eax
lea ecx, [esp + 0x20]
push ecx
push eax
push eax
lea edx, [esp + 0x34]
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x28]
push edx
push eax
mov dword [esp + 0x3c], 1
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
call fcn.00453190
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov ecx, dword [ecx]
test ecx, ecx
jne 0x4400d2
test edi, edi
jge 0x43ffd8
cmp dword [0x5426d0], 1
jb 0x43ffd6
push 0x1000221
call fcn.00408960
add esp, 4
test eax, eax
je 0x43ffd6
push str.TCP:_select___failed
push 0x1000221
call fcn.00408640
add esp, 8
test edi, edi
jg 0x440003
mov eax, dword [0x5426b0]
test eax, eax
je 0x43fff3
push 1
push eax
call fcn.004187f0
add esp, 8
jmp 0x43ff60
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x43ff60
mov edx, dword [ebp + 0x18]
mov edi, dword [ebp + 8]
push edx
mov ecx, esi
call fcn.0043fda0
mov ebx, eax
add esp, 4
cmp ebx, 0xffffffff
je 0x43ffda
mov eax, dword [esp + 0x18]
test eax, eax
je 0x440055
push 0
push 0
push 1
push eax
push 0x101
call fcn.0043f2f0
add esp, 0x14
test eax, eax
je 0x440055
cmp dword [esp + 0x138], eax
je 0x440055
mov dword [esp + 0x138], eax
mov eax, dword [esp + 0x14]
mov dword [eax], 1
mov eax, dword [esp + 0x138]
test eax, eax
je 0x440106
cmp eax, dword [esi + 4]
je 0x440106
push 0x40
call fcn.00408960
add esp, 4
test eax, eax
je 0x440097
push 6
push esi
lea eax, [esp + 0x18]
call fcn.00441fd0
push eax
push str.TCP_NOTE:_Rejected_connection_attempt_from__s_due_to___remote_setting
push 0x40
call fcn.00408640
add esp, 0x14
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x43ffda
push 0x210
call fcn.00408960
add esp, 4
test eax, eax
je 0x43ffda
push str.TCP:_close_socket_failed__new_sd_
push 0x210
call fcn.00408640
add esp, 8
jmp 0x43ffda
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4400ee
mov edi, dword [sym.imp.MSVCR80.dll_free]
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x4400e0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004dcaae
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
jne 0x44013a
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x44013a
push 0x210
call fcn.00408960
add esp, 4
test eax, eax
je 0x44013a
push str.TCP:_close_socket_failed__sd_
push 0x210
call fcn.00408640
add esp, 8
push esi
call fcn.0043fe70
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x44015f
mov edi, dword [sym.imp.MSVCR80.dll_free]
mov esi, dword [eax]
push eax
call edi
add esp, 4
test esi, esi
mov eax, esi
jne 0x440151
mov ecx, dword [esp + 0x144]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004dcaae
mov esp, ebp
pop ebp
ret