Function at 0x462b60
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd1fe
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x6522a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], 0
mov edi, dword [ebp + 8]
mov esi, dword [edi + 8]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], esi
test esi, esi
je 0x462bba
add esi, 4
mov edx, dword [esi]
mov eax, edx
lea ecx, [edx + 1]
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x462ba8
mov ecx, dword [ebp - 0x3c]
mov eax, dword [edi + 0xc]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
test ecx, ecx
jne 0x462c56
mov dword [ebp - 0x48], 9
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], str.DNSLookup
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], str.Socket
push str.ip_is_empty
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x24]
push eax
push 2
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x20]
or edi, 0xffffffff
mov byte [ebp - 4], 3
test ecx, ecx
je 0x462c2f
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462c2f
mov dword [ebp - 0x20], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 4
test ecx, ecx
je 0x462c4f
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462c4f
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
call dword [eax]
xor bl, bl
jmp 0x46315a
mov esi, dword [edi + 0x14]
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
test esi, esi
je 0x462c82
add esi, 4
nop dword [eax]
mov edx, dword [esi]
mov eax, edx
lea ecx, [edx + 1]
lock cmpxchg dword [esi], ecx
cmp eax, edx
jne 0x462c70
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x28], eax
or edi, 0xffffffff
mov byte [ebp - 4], 5
test ecx, ecx
jne 0x462d1d
mov dword [ebp - 0x24], 9
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], str.DNSLookup
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], str.Socket
push str.port_is_empty
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 7
push eax
lea eax, [ebp - 0x48]
push eax
push 2
call fcn.0044ef70
add esp, 0x10
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x462cf4
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462cf4
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x463138
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x463138
mov dword [ebp - 0x20], 0
jmp 0x463134
movzx eax, byte [ebp + 0x14]
lea ecx, [ebp - 0x30]
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0
xor eax, 1
movlpd qword [ebp - 0x80], xmm0
movlpd qword [ebp - 0x78], xmm0
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], 0
call fcn.00453230
mov ecx, eax
mov eax, dword [ebp + 0x10]
sub eax, 0
je 0x462da2
sub eax, 1
je 0x462d8f
sub eax, 1
je 0x462d70
mov dword [ebp - 0x84], 0
jmp 0x462db3
mov dword [ebp - 0x80], 1
xor ecx, ecx
mov dword [ebp - 0x84], 3
mov dword [ebp - 0x8c], 0
jmp 0x462db3
mov dword [ebp - 0x80], 0x11
mov dword [ebp - 0x84], 2
jmp 0x462db3
mov dword [ebp - 0x80], 6
mov dword [ebp - 0x84], 1
mov ebx, dword [ebp + 0xc]
mov dword [ebp + 8], 0
mov eax, dword [ebx + 0x90]
sub eax, 3
je 0x462dd9
sub eax, 1
jne 0x462de3
mov dword [ebp - 0x88], 0x17
jmp 0x462de3
mov dword [ebp - 0x88], 2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x8c]
push eax
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00453230
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x462f4c
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x5c763c
push 0
push 0x400
push 0x655d70
push 0x400
push eax
push 0
push 0x12ff
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ecx, 0x655d70
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x462e46
sub ecx, edx
push ecx
push 0x655d70
lea ecx, [ebp - 0x24]
call fcn.00451de0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push str.getaddrinfo__
push eax
call fcn.00449030
add esp, 0xc
push eax
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 0xb
call fcn.004516e0
mov dword [ebp - 0x54], 9
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], str.DNSLookup
mov dword [ebp - 0x48], 6
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.Socket
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0xe
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push 2
call fcn.0044ef50
add esp, 0x10
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0xf
test ecx, ecx
je 0x462ee3
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462ee3
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x462f03
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462f03
mov dword [ebp - 0x50], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x11
test ecx, ecx
je 0x462f23
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462f23
mov dword [ebp - 0x5c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x462f43
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x462f43
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
call dword [eax]
mov byte [ebp - 4], 0x13
jmp 0x462cf8
mov eax, dword [ebx + 0x90]
cmp eax, 1
je 0x462f98
cmp eax, 2
je 0x462f98
mov esi, dword [ebp + 8]
mov ax, word [esi + 4]
mov word [ebx], ax
mov eax, dword [esi + 8]
mov dword [ebx + 4], eax
mov eax, dword [esi + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [esi + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call fcn.00594a50
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov bl, 1
jmp 0x46313a
cmp eax, 1
mov ecx, 2
mov eax, dword [ebp + 8]
mov edx, 0x17
cmove edx, ecx
mov ecx, eax
xor esi, esi
test ecx, ecx
je 0x462fd2
mov eax, dword [ecx + 4]
movzx ebx, ax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
cmp eax, edx
je 0x46318f
mov ecx, dword [ecx + 0x1c]
inc esi
test ecx, ecx
jne 0x462fb3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
lea eax, [ebp - 0x6c]
push esi
push eax
call fcn.004534e0
add esp, 8
mov esi, eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x5c763c
push 0x14
push str.no_address_match_in
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.00451de0
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x10]
call fcn.00448ce0
mov dword [ebp - 0x18], 1
mov ecx, dword [ebp - 0x20]
mov byte [ebp - 4], 0x17
test ecx, ecx
je 0x463044
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x463044
mov dword [ebp - 0x20], 0
mov eax, dword [ecx]
call dword [eax]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x60]
call fcn.004516e0
mov dword [ebp - 0x48], 9
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], str.DNSLookup
mov dword [ebp - 0x54], 6
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], str.Socket
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x1a
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x54]
push eax
push 2
call fcn.0044ef50
add esp, 0x10
mov ecx, dword [ebp - 0x50]
mov byte [ebp - 4], 0x1b
test ecx, ecx
je 0x4630b8
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4630b8
mov dword [ebp - 0x50], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x44]
mov byte [ebp - 4], 0x1c
test ecx, ecx
je 0x4630d8
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4630d8
mov dword [ebp - 0x44], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x5c]
mov byte [ebp - 4], 0x1d
test ecx, ecx
je 0x4630f8
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4630f8
mov dword [ebp - 0x5c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0x1e
test ecx, ecx
je 0x463118
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x463118
mov dword [ebp - 0x10], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x68]
mov byte [ebp - 4], 0x1f
test ecx, ecx
je 0x463138
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x463138
mov dword [ebp - 0x68], 0
mov eax, dword [ecx]
call dword [eax]
xor bl, bl
mov ecx, dword [ebp - 0x2c]
mov byte [ebp - 4], 0x20
test ecx, ecx
je 0x46315a
mov eax, edi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x46315a
mov dword [ebp - 0x2c], 0
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 0x21
test ecx, ecx
je 0x46317b
lock xadd dword [ecx + 4], edi
dec edi
jne 0x46317b
mov dword [ebp - 0x38], 0
mov edx, dword [ecx]
call dword [edx]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
mov word [ebx], ax
mov eax, dword [ecx + 8]
mov dword [ebx + 4], eax
mov eax, dword [ecx + 0xc]
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0x10]
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10]
push dword [ecx + 0x10]
push dword [ecx + 0x18]
push eax
call fcn.00594a50
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov bl, 1
jmp 0x46313a