Function at 0x4507e0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4ae23c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x2c]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
cmp ecx, ebx
je 0x450880
mov edx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push edx
push edi
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x450822
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x450867
mov ebx, dword [esi + 8]
mov dword [esi + 8], 2
cmp ebx, 2
je 0x450867
cmp dword [esi + 4], 0
je 0x450867
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ecx, [ebp - 0x18]
mov edi, eax
xor eax, eax
push ecx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 2
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
call fcn.0044eb90
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x4c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004615db
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xc]
cmp eax, 2
jne 0x45093c
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
cmp edi, ebx
jne 0x4508a2
xor edi, edi
jmp 0x4508cf
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4508b5
xor edi, edi
jmp 0x4508cf
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.00404150
mov edi, eax
xor ebx, ebx
mov ecx, 2
push edi
mov word [ebp - 0x14], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
jne 0x450909
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4508fe
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
jmp 0x450909
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [esi + 4]
mov word [ebp - 0x12], ax
push 0x10
lea eax, [ebp - 0x14]
push eax
call fcn.0044ce20
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x450810
cmp eax, 0x17
je 0x450949
cmp eax, ebx
jne 0x450810
cmp dword [0x4b0194], ebx
jne 0x450963
push 0x273b
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x45086a
mov edx, dword [esi + 0x1c]
push edx
call dword [0x4b0198]
mov ecx, dword [ebp + 0xc]
xor eax, eax
push ecx
push 0x49a6a4
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0xc]
lea edx, [ebp - 0x10]
push 9
push edx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x1c], ebx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x40], ebx
call fcn.00466ac1
add esp, 0x10
cmp edi, ebx
jne 0x4509bc
xor eax, eax
jmp 0x4509e7
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x4509cf
xor eax, eax
jmp 0x4509e7
lea ebx, [eax + eax]
mov eax, ebx
call fcn.00463310
mov eax, esp
push 3
push ebx
push edi
push eax
call fcn.00404150
xor ebx, ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [0x4b0194]
test eax, eax
jne 0x45095c
mov edi, dword [ebp - 0x20]
cmp edi, ebx
je 0x450b54
lea ecx, [ecx]
cmp dword [esi + 0xc], ebx
jne 0x450a29
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_socket]
jmp 0x450a31
mov ecx, dword [esi + 4]
call fcn.0044ce20
cmp eax, 0xffffffff
jne 0x450a3e
mov dword [ebp - 0x1c], ebx
jmp 0x450b46
cmp dword [esi + 0xc], ebx
jne 0x450b00
mov edx, dword [esi + 4]
mov dword [edx + 4], eax
mov ecx, dword [esi + 4]
push eax
call fcn.0044d460
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 4]
push eax
call fcn.0044d560
mov ecx, dword [esi + 4]
test eax, eax
jne 0x450a78
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x1c], ebx
jmp 0x450b46
cmp dword [ecx + 0x38], ebx
je 0x450ab2
mov edx, dword [ecx + 8]
push 0x3f
add edx, 0x403
push edx
call fcn.0044ce30
push eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
test eax, eax
je 0x450ab2
mov ecx, dword [esi + 4]
mov edx, dword [ecx]
mov eax, dword [edx + 8]
call eax
mov dword [ebp - 0x1c], ebx
jmp 0x450b46
mov ecx, dword [esi + 4]
cmp dword [ecx + 0x4c], ebx
je 0x450ad0
mov edx, dword [ecx + 8]
push ebx
push edx
push 0x402
call fcn.0044ce30
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [esi + 0xc], ebx
jne 0x450b00
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], eax
mov dword [ecx + 0xc], eax
mov edx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 4]
push edx
push eax
call fcn.0044d1d0
test eax, eax
jne 0x450b00
mov ecx, dword [esi + 4]
mov dword [esi + 0xc], ebx
mov dword [ecx + 0xc], ebx
jmp 0x450b3d
mov ecx, dword [edi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
mov ecx, dword [esi + 4]
push edx
call fcn.0044ce20
push eax
call dword [sym.imp.WS2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
mov dword [ebp - 0x1c], eax
cmp eax, ebx
jne 0x450b74
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x450b74
cmp dword [ebp - 0x3c], ebx
jne 0x450b46
mov dword [esi + 0xc], ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x450a10
mov edi, dword [ebp - 0x20]
push edi
call dword [0x4b0198]
mov ecx, dword [esi + 4]
call fcn.0044ce20
cmp eax, 0xffffffff
jne 0x450810
mov dword [ebp - 0x1c], ebx
jmp 0x450815
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
mov dword [esi + 0xc], ecx
mov eax, dword [edi + 4]
mov dword [edx + 0xc], eax
mov edi, dword [ebp - 0x20]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x1c], 1
cmp eax, ebx
je 0x450b54
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
jmp 0x450b5b