Function at 0x441120
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5566bd
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x592c80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 8]
xor esi, esi
cmp dword [eax + 0x14], 0xf
jbe 0x44115b
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x44117d
push str.Connect__:_gethostbyname___failed.
call fcn.00442a00
add esp, 4
xor al, al
jmp 0x44132f
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5a59e0
call ebx
push 0x5a59e0
call ebx
mov eax, dword [0x5a59cc]
cmp eax, dword [0x5a59d0]
push 0x5a59e0
sete bl
call edi
test bl, bl
je 0x4411db
push 0x5a59e0
call edi
cmp esi, 0xa
jg 0x4411c7
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x441183
push str.Connect__:_try_count_exceeding.
call fcn.00442a00
add esp, 4
xor al, al
jmp 0x44132f
mov ecx, dword [0x5a59d0]
mov eax, dword [0x5a59c8]
mov ebx, dword [eax + ecx*4]
inc ecx
mov dword [0x5a59d0], ecx
cmp ecx, dword [0x5a59d8]
jl 0x441202
mov eax, dword [0x5a59d4]
mov dword [0x5a59d0], eax
push 0x5a59e0
call edi
mov esi, dword [ebp - 0x24]
push 0x10
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x441238
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Connect__:_WSAEventSelect___failed:_error_code:__d
call fcn.00442a00
add esp, 8
xor al, al
jmp 0x44132f
mov eax, dword [ebp - 0x28]
mov ecx, 2
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov word [ebp - 0x20], cx
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x5a93a4
mov word [ebp - 0x1e], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x28], esi
push eax
call fcn.00444940
movq xmm0, qword [eax]
mov eax, dword [eax + 8]
movq qword [ebp - 0x38], xmm0
cmp byte [eax + 0xd], 0
jne 0x441293
cmp ebx, dword [eax + 0x10]
jge 0x4412f3
cmp dword [0x5aa434], 0xaaaaaaa
je 0x44134d
mov esi, dword [0x5aa430]
mov dword [ebp - 0x2c], 0x5aa430
mov dword [ebp - 4], 0
push 0x18
mov dword [ebp - 0x28], 0
call fcn.004c8b9c
mov ecx, dword [ebp - 0x24]
add esp, 4
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ecx
mov ecx, 0x5aa430
push eax
push dword [ebp - 0x34]
mov dword [eax], esi
push dword [ebp - 0x38]
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov word [eax + 0xc], 0
call fcn.00444bd0
mov esi, dword [ebp - 0x24]
push 0x5a93a4
call edi
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x44132d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x44132d
push eax
push str.Connect__:_connect___failed:_error_code:__d
call fcn.00442a00
add esp, 8
xor al, al
jmp 0x44132f
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c8873
mov esp, ebp
pop ebp
ret 8
call fcn.00440cc0
int3