Function at 0x419740
Capabilities:
Connect socket
Resolve dns

Disassembly:
mov eax, 0x2424
call fcn.0043ae00
mov eax, dword [0x513168]
push ebx
push ebp
push esi
mov esi, ecx
push edi
test eax, eax
mov dword [esp + 0x24], esi
je 0x4197b9
push 0x46fe28
push 0x51316c
lea ecx, [esp + 0x430]
call fcn.0042c2f0
lea ecx, [esp + 0x428]
call fcn.0042c3b0
test eax, eax
je 0x4197b9
lea ecx, [esp + 0x428]
call fcn.0042c350
push eax
call fcn.0043bd89
mov ebp, dword [esp + 0x2444]
add esp, 4
cmp ebp, eax
je 0x419976
lea ecx, [esp + 0x428]
call fcn.0042c3b0
test eax, eax
jne 0x419783
jmp 0x4197c0
mov ebp, dword [esp + 0x2440]
mov eax, dword [0x4fb8a4]
mov edi, dword [esp + 0x2444]
test eax, eax
jne 0x4199be
mov eax, dword [edi*4 + 0x4fc8b0]
test eax, eax
jne 0x4199be
mov esi, dword [esp + 0x243c]
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
xor eax, eax
push esi
mov dword [esp + 0x18], eax
mov word [esp + 0x18], 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0x18], eax
jne 0x41982f
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x419976
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
mov eax, dword [0x514170]
test eax, eax
je 0x419934
push 0x46fe28
push 0x514174
lea ecx, [esp + 0x430]
call fcn.0042c2f0
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x428]
call fcn.0042c3b0
test eax, eax
je 0x419934
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dl, byte [0x473aa0]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x29]
mov byte [esp + 0x28], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x428]
stosb byte es:[edi], al
call fcn.0042c350
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x46e148
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
push ecx
call fcn.0043ad80
add esp, 8
test eax, eax
je 0x4198e7
mov byte [eax], 0
inc eax
push eax
call ebx
lea edx, [esp + 0x28]
mov edi, eax
push edx
call ebx
mov esi, eax
jmp 0x4198f2
lea eax, [esp + 0x28]
push eax
call ebx
mov esi, eax
mov edi, esi
push edi
call ebp
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
call ebp
cmp eax, edi
ja 0x419912
push esi
call ebp
mov edx, dword [esp + 0x10]
mov esi, eax
push edx
call ebp
cmp eax, esi
jae 0x419976
lea ecx, [esp + 0x428]
call fcn.0042c3b0
test eax, eax
jne 0x419874
mov edi, dword [esp + 0x2444]
mov ebp, dword [esp + 0x2440]
push ebp
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x16], ax
mov eax, dword [0x513164]
test eax, eax
je 0x419985
cmp edi, 3
je 0x41995d
cmp edi, 2
je 0x41995d
cmp ebp, 0x19
je 0x41995d
cmp ebp, 0x6e
jne 0x419985
mov ecx, dword [esp + 0x2438]
lea eax, [esp + 0x14]
push 0x10
push eax
push ecx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4199ac
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2424
ret 0x10
mov eax, dword [esp + 0x2438]
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x14]
push edx
push eax
call fcn.00411850
test eax, eax
jne 0x4199ac
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2424
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2424
ret 0x10
mov ecx, dword [esp + 0x243c]
mov edx, dword [esp + 0x2438]
push edi
push ebp
push ecx
push edx
mov ecx, esi
call fcn.0041c030
dec eax
pop edi
neg eax
sbb eax, eax
pop esi
pop ebp
inc eax
pop ebx
add esp, 0x2424
ret 0x10