Function at 0x457430
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x49e128]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov dword [ebp - 0x18], edi
jne 0x457460
mov eax, dword [ebp + 0xc]
push eax
push esi
call fcn.0045ae60
jmp 0x457705
call dword [0x49ded0]
cmp dword [edi + 0x54], 1
mov dword [ebp - 0x1c], eax
je 0x45758f
mov ebx, dword [edi + 0x58]
test ebx, ebx
jne 0x45747e
xor eax, eax
jmp 0x4574af
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
add edi, 1
cmp edi, 0x3fffffff
jle 0x457496
xor eax, eax
jmp 0x4574ac
lea eax, [edi + edi]
call fcn.00461b20
mov ecx, dword [ebp - 0x1c]
mov eax, esp
push ecx
push edi
push ebx
push eax
call fcn.004040a0
mov edi, dword [ebp - 0x18]
mov edx, dword [edi + 0x5c]
push edx
push eax
mov ecx, edi
call fcn.0045ae60
test eax, eax
jne 0x4574e2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4574e2
push 0
push 0
push 1
push 1
mov ecx, edi
call fcn.0045a660
xor eax, eax
jmp 0x457705
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [edi + 0x6c]
movzx ecx, ax
push edx
mov dword [edi + 0x4c], ecx
mov dword [edi + 0x50], 0
call fcn.00460edd
mov eax, esi
add esp, 4
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x457510
sub eax, edx
sar eax, 1
add eax, 1
push eax
call fcn.0045fbce
add esp, 4
test esi, esi
mov dword [edi + 0x6c], eax
jne 0x457536
xor eax, eax
jmp 0x457566
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x45754b
xor eax, eax
jmp 0x457566
lea edi, [eax + eax]
mov eax, edi
call fcn.00461b20
mov ecx, dword [ebp - 0x1c]
mov eax, esp
push ecx
push edi
push esi
push eax
call fcn.004040e0
mov edi, dword [ebp - 0x18]
mov edx, dword [edi + 0x6c]
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x457570
mov dword [edi + 0x48], 1
mov eax, 1
jmp 0x457705
xor eax, eax
test esi, esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
jne 0x4575a5
xor ebx, ebx
jmp 0x4575d7
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4575ba
xor ebx, ebx
jmp 0x4575d7
lea edi, [eax + eax]
mov eax, edi
call fcn.00461b20
mov edx, dword [ebp - 0x1c]
mov eax, esp
push edx
push edi
push esi
push eax
call fcn.004040e0
mov edi, dword [ebp - 0x18]
mov ebx, eax
push ebx
mov word [ebp - 0x14], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
jne 0x457601
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x457647
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov ecx, edi
mov word [ebp - 0x12], ax
call fcn.004563f0
mov ebx, eax
test ebx, ebx
jne 0x457633
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x457703
mov edx, dword [edi + 0x6c]
push edx
call fcn.00460edd
add esp, 4
test esi, esi
jne 0x457668
xor eax, eax
jmp 0x457698
push 0
push 0
push 7
push 1
mov ecx, edi
call fcn.0045a660
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x457705
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x45767d
xor eax, eax
jmp 0x457698
lea edi, [eax + eax]
mov eax, edi
call fcn.00461b20
mov ecx, dword [ebp - 0x1c]
mov eax, esp
push ecx
push edi
push esi
push eax
call fcn.004040e0
mov edi, dword [ebp - 0x18]
lea edx, [eax + 1]
jmp 0x4576a0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4576a0
sub eax, edx
add eax, 1
push eax
call fcn.0045fbce
add esp, 4
test esi, esi
mov dword [edi + 0x6c], eax
jne 0x4576c2
xor eax, eax
jmp 0x4576f2
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, 1
cmp eax, 0x3fffffff
jle 0x4576d7
xor eax, eax
jmp 0x4576f2
lea edi, [eax + eax]
mov eax, edi
call fcn.00461b20
mov edx, dword [ebp - 0x1c]
mov eax, esp
push edx
push edi
push esi
push eax
call fcn.004040e0
mov edi, dword [ebp - 0x18]
mov edx, dword [edi + 0x6c]
mov cl, byte [eax]
mov byte [edx], cl
add eax, 1
add edx, 1
test cl, cl
jne 0x4576f5
mov eax, ebx
lea esp, [ebp - 0x28]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460e4b
mov esp, ebp
pop ebp
ret 8