Function at 0x45d200
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db371
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
mov eax, dword [0x50e018]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x1c], eax
mov ecx, 1
mov dword [ebp - 4], ecx
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 6
mov dword [ebp - 0x18], eax
call fcn.004628d0
cmp dword [ebp + 0x1c], 0x10
mov esi, eax
mov eax, dword [ebp + 8]
mov ebx, edx
jae 0x45d28e
lea eax, [ebp + 8]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x40]
push edx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0x14], eax
call fcn.004628d0
sub eax, esi
sbb edx, ebx
push 0
add eax, 0x3e7
push 0x3e8
adc edx, 0
push edx
push eax
call fcn.004cbc80
cmp dword [ebp - 0x14], 0
jne 0x45d4b8
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x24], 0
mov dword [ebp - 0x14], eax
test eax, eax
je 0x45d4a4
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 4]
sub eax, 2
je 0x45d3d1
sub eax, 0x15
jne 0x45d490
mov esi, dword [ecx + 0x18]
mov eax, dword [edi + 0x14]
lea ebx, [edi + 0x10]
add esi, 8
cmp esi, eax
jae 0x45d363
mov edx, dword [ebx]
cmp edx, esi
ja 0x45d363
mov ecx, dword [ebx + 8]
sub esi, edx
cmp eax, ecx
jne 0x45d35c
sub eax, edx
sar eax, 4
cmp eax, 0xffffffe
ja 0x45d4ad
sub ecx, edx
inc eax
sar ecx, 4
mov dword [ebp - 0x20], eax
cmp eax, ecx
jbe 0x45d35c
mov eax, ecx
shr eax, 1
mov edx, 0xfffffff
sub edx, eax
cmp edx, ecx
jae 0x45d34a
xor ecx, ecx
jmp 0x45d34c
add ecx, eax
mov eax, dword [ebp - 0x20]
cmp ecx, eax
jae 0x45d355
mov ecx, eax
mov edx, ebx
call fcn.00465a30
and esi, 0xfffffff0
add esi, dword [ebx]
jmp 0x45d3ab
mov ecx, dword [ebx + 8]
cmp eax, ecx
jne 0x45d3ab
mov edx, dword [ebx]
sub eax, edx
sar eax, 4
cmp eax, 0xffffffe
ja 0x45d4ad
sub ecx, edx
inc eax
sar ecx, 4
cmp eax, ecx
jbe 0x45d3ab
mov edx, ecx
shr edx, 1
mov ebx, 0xfffffff
sub ebx, edx
cmp ebx, ecx
jae 0x45d399
xor ecx, ecx
jmp 0x45d39b
add ecx, edx
cmp ecx, eax
jae 0x45d3a1
mov ecx, eax
lea ebx, [edi + 0x10]
mov edx, ebx
call fcn.00465a30
mov eax, dword [ebx + 4]
test eax, eax
je 0x45d3c8
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 8]
mov dword [eax + 8], ecx
mov edx, dword [esi + 0xc]
mov dword [eax + 0xc], edx
add dword [ebx + 4], 0x10
jmp 0x45d490
mov esi, dword [ecx + 0x18]
mov eax, dword [edi + 4]
add esi, 4
cmp esi, eax
jae 0x45d43f
mov edx, dword [edi]
cmp edx, esi
ja 0x45d43f
mov ecx, dword [edi + 8]
sub esi, edx
sar esi, 2
cmp eax, ecx
jne 0x45d42d
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x45d4ad
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x45d42d
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x45d41d
xor ecx, ecx
jmp 0x45d41f
add ecx, edx
cmp ecx, eax
jae 0x45d425
mov ecx, eax
push ecx
mov ecx, edi
call fcn.00465960
mov eax, dword [edi]
lea ecx, [eax + esi*4]
mov eax, dword [edi + 4]
test eax, eax
je 0x45d48c
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x45d48c
mov ecx, dword [edi + 8]
cmp eax, ecx
jne 0x45d481
mov edx, dword [edi]
sub eax, edx
sar eax, 2
cmp eax, 0x3ffffffe
ja 0x45d4ad
sub ecx, edx
inc eax
sar ecx, 2
cmp eax, ecx
jbe 0x45d481
mov edx, ecx
shr edx, 1
mov ebx, 0x3fffffff
sub ebx, edx
cmp ebx, ecx
jae 0x45d471
xor ecx, ecx
jmp 0x45d473
add ecx, edx
cmp ecx, eax
jae 0x45d479
mov ecx, eax
push ecx
mov ecx, edi
call fcn.00465960
mov eax, dword [edi + 4]
test eax, eax
je 0x45d48c
mov edx, dword [esi]
mov dword [eax], edx
add dword [edi + 4], 4
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x45d2e3
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x45d4bf
push str.vector_T__too_long
call dword [sym.imp.MSVCP100.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [edi + 0x24], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x45d4d2
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret