Function at 0x412930
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4764f1
mov eax, dword fs:[0]
push eax
mov eax, 0x1068
call fcn.00444200
mov eax, dword [0x4a6c44]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x2e
push esi
call fcn.00447950
add esp, 8
test eax, eax
je 0x412ae4
sub eax, esi
push eax
mov dword [ebp - 0x1044], eax
lea eax, [ebp - 0x1010]
push esi
push eax
call fcn.00446600
mov eax, dword [ebp - 0x1044]
add esp, 0xc
cmp eax, 0x1000
jae 0x412be0
mov byte [ebp + eax - 0x1010], 0
lea eax, [ebp - 0x1010]
push eax
call fcn.0044f73e
add esp, 4
test eax, eax
je 0x412ae4
mov dword [ebp - 0x1050], 0
mov dword [ebp - 0x104c], 0
mov dword [ebp - 0x1048], 0
push 1
push 0x47cd54
lea ecx, [ebp - 0x1040]
mov dword [ebp - 4], 0
mov dword [ebp - 0x1030], 0
mov dword [ebp - 0x102c], 0xf
mov byte [ebp - 0x1040], 0
call fcn.00401d51
mov ecx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x1018], 0
mov dword [ebp - 0x1014], 0xf
mov byte [ebp - 0x1028], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x412a40
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x1028]
call fcn.00401d51
lea eax, [ebp - 0x1050]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1040]
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.004146f0
add esp, 0xc
lea ecx, [ebp - 0x1028]
call fcn.004014f2
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 0
call fcn.004014f2
mov ecx, dword [ebp - 0x104c]
mov eax, 0x2aaaaaab
sub ecx, dword [ebp - 0x1050]
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 4
jne 0x412ad2
sub edi, esi
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [edi + esi - 1], al
test al, al
jne 0x412ab5
lea ecx, [ebp - 0x1050]
call fcn.00404c60
jmp 0x412bc3
lea ecx, [ebp - 0x1050]
mov dword [ebp - 4], 0xffffffff
call fcn.00404c60
lea eax, [ebp - 0x1054]
xorps xmm0, xmm0
push eax
lea eax, [ebp - 0x1074]
push eax
movups xmmword [ebp - 0x1074], xmm0
or dword [ebp - 0x1074], 2
push 0
push esi
movups xmmword [ebp - 0x1064], xmm0
mov dword [ebp - 0x1070], 2
mov dword [ebp - 0x106c], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x1044], eax
test eax, eax
je 0x412b67
push eax
call fcn.00470ed0
push eax
push dword [ebp - 0x1044]
push esi
push str.getaddrinfo__s__failed:_Error_Code___d__Error___s
push 0x39b
push 0x47eb50
push 3
push str.Utility::GetIPAddressByName
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x28
xor al, al
jmp 0x412bc5
mov eax, dword [ebp - 0x1054]
test eax, eax
je 0x412b8e
mov eax, dword [eax + 0x18]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x47cce0
push edi
call fcn.00407cd0
add esp, 0xc
jmp 0x412bc3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
call fcn.00470ed0
push eax
push edi
push esi
push str.getaddrinfo__s__return_NULL:_Error_Code___d__Error___s
push 0x3a8
push 0x47eb50
push 3
push str.Utility::GetIPAddressByName
push dword [0x4a9068]
call fcn.0040ee70
add esp, 0x28
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004440d2
mov esp, ebp
pop ebp
ret
call fcn.00443ff8
int3