Function at 0x4a4290
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
lea ecx, [ebp - 0x20]
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]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4a42d4
mov eax, dword [ebp - 0xc]
jmp 0x4a44ac
mov edx, dword [ebp - 0x20]
mov dword [ebp - 8], edx
jmp 0x4a42e5
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0
je 0x4a445f
mov edx, dword [ebp - 8]
cmp dword [edx + 0x14], 0
je 0x4a430f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00606e50
add esp, 4
add eax, 1
mov dword [ebp - 0x24], eax
jmp 0x4a4316
mov dword [ebp - 0x24], 0
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 2
jne 0x4a432e
mov dword [ebp - 0x10], 0x10
jmp 0x4a4342
mov ecx, dword [ebp - 8]
cmp dword [ecx + 4], 0x17
jne 0x4a4340
mov dword [ebp - 0x10], 0x1c
jmp 0x4a4342
jmp 0x4a42dc
mov edx, dword [ebp - 8]
cmp dword [edx + 0x18], 0
je 0x4a4354
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
ja 0x4a4356
jmp 0x4a42dc
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
cmp edx, dword [ebp - 0x10]
jae 0x4a4366
jmp 0x4a42dc
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
lea edx, [ecx + eax + 0x20]
push edx
call dword [0x6b5368]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a438f
mov dword [ebp - 0xc], 8
jmp 0x4a445f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 4]
add edx, 0x20
mov eax, dword [ebp - 4]
mov dword [eax + 0x18], edx
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x18]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
push edx
call fcn.005f31f0
add esp, 0xc
cmp dword [ebp - 0x18], 0
je 0x4a4439
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov dword [edx + 0x14], ecx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.005f31f0
add esp, 0xc
cmp dword [ebp - 0x14], 0
jne 0x4a4445
mov edx, dword [ebp - 4]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 0x1c], 0
je 0x4a4454
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1c], ecx
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
jmp 0x4a42dc
cmp dword [ebp - 0x20], 0
je 0x4a446f
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 0xc], 0
je 0x4a448a
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a4250
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x4a44a1
cmp dword [ebp - 0x14], 0
jne 0x4a44a1
mov dword [ebp - 0xc], 0x2af9
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret