Function at 0x457690
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov eax, 0xcccccccc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov esi, esp
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x4576fe
mov eax, dword [ebp - 0x24]
jmp 0x45791b
mov edx, dword [ebp - 0xc]
mov dword [ebp - 4], edx
jmp 0x45770f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x4578bc
mov edx, dword [ebp - 4]
cmp dword [edx + 4], 2
jne 0x45772b
mov dword [ebp - 0x20], 0x10
jmp 0x45772d
jmp 0x457706
mov eax, dword [ebp - 4]
cmp dword [eax + 0x18], 0
je 0x45773f
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x10], 0
ja 0x457741
jmp 0x457706
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x10]
cmp eax, dword [ebp - 0x20]
jae 0x45774e
jmp 0x457706
mov esi, esp
push 0x20
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x457777
mov dword [ebp - 0x24], 8
jmp 0x4578bc
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx + 8], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x18], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x1c], 0
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x18], 0
jne 0x457813
mov dword [ebp - 0x24], 8
mov esi, esp
mov eax, dword [ebp - 0x1c]
push eax
call dword [0x4c0004]
add esp, 4
cmp esi, esp
call fcn.004a9923
jmp 0x4578bc
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x18]
push edx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x457896
mov esi, esp
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
push edx
call dword [0x4c000c]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x14], eax
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 0x14], 0
jne 0x457896
mov dword [ebp - 0x24], 8
mov esi, esp
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 0x18]
push ecx
call dword [0x4c0004]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov esi, esp
mov edx, dword [ebp - 0x1c]
push edx
call dword [0x4c0004]
add esp, 4
cmp esi, esp
call fcn.004a9923
jmp 0x4578bc
cmp dword [ebp - 0x14], 0
jne 0x4578a2
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x18], 0
je 0x4578b1
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
jmp 0x457706
cmp dword [ebp - 0xc], 0
je 0x4578d5
mov esi, esp
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp esi, esp
call fcn.004a9923
cmp dword [ebp - 0x24], 0
je 0x4578f0
mov edx, dword [ebp - 0x14]
push edx
call fcn.00457600
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x457910
cmp dword [ebp - 0x14], 0
jne 0x457910
mov dword [ebp - 0x24], 0x2af9
mov esi, esp
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
cmp esi, esp
call fcn.004a9923
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov eax, dword [ebp - 0x24]
push edx
mov ecx, ebp
push eax
lea edx, [0x45793c]
call fcn.004a98cf
pop eax
pop edx
pop esi
add esp, 0x24
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret