Function at 0x42fdb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0310
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
jne 0x42fddd
or eax, 0xffffffff
jmp 0x43016c
mov eax, dword [0x50d0e0]
push edi
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x42fe18
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
test eax, eax
je 0x42fe18
mov ecx, dword [ebp - 0x10]
inc esi
push esi
push edi
push ecx
call fcn.00409840
add esp, 0xc
lea ecx, [ebp - 0x10]
push 0xffffffffffffffff
call fcn.00407e30
push 0
push 0x50fcec
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
call fcn.00414af0
test eax, eax
je 0x42fe67
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x50d0e4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42fe5f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42fe5f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
or eax, 0xffffffff
jmp 0x43016c
mov ecx, dword [ebp - 0x10]
lea edx, [ebp - 0x18]
mov eax, dword [ecx - 8]
lea ecx, [ebp - 0x10]
add eax, 0xfffffff9
push eax
push edx
call fcn.004071a0
push 0
push 0x2f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004174e0
mov ecx, dword [0x50d0e0]
mov dword [ebp + 8], ecx
test eax, eax
mov byte [ebp - 4], 2
jle 0x42ff32
push eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x18]
call fcn.00407030
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
cmp ecx, eax
mov byte [ebp - 4], 3
je 0x42feff
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x42fed2
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42fed9
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42fee8
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.004021f0
jmp 0x42feff
lea ecx, [ebp + 8]
call fcn.00402350
mov esi, dword [esi]
mov dword [ebp + 8], esi
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x50d0e4]
mov byte [ebp - 4], 2
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x42ff7b
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x42ff7b
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
jmp 0x42ff7b
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x42ff7b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x42ff4d
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42ff54
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42ff63
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.004021f0
jmp 0x42ff7b
lea ecx, [ebp + 8]
call fcn.00402350
mov eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0x3a
lea ecx, [ebp + 8]
call fcn.004174e0
mov esi, eax
mov eax, dword [0x50d0e0]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], eax
mov bl, 5
test esi, esi
mov byte [ebp - 4], bl
jle 0x430039
mov edx, dword [ebp + 8]
lea ecx, [ebp + 8]
mov eax, dword [edx - 8]
sub eax, esi
dec eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004071a0
mov edi, eax
mov eax, dword [edi]
mov ecx, dword [ebp - 0x14]
cmp ecx, eax
mov byte [ebp - 4], 6
je 0x430007
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x42ffda
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x42ffe1
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x42fff0
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004021f0
jmp 0x430007
lea ecx, [ebp - 0x14]
call fcn.00402350
mov edi, dword [edi]
mov dword [ebp - 0x14], edi
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00402160
lea edx, [ebp - 0x20]
push esi
push edx
lea ecx, [ebp + 8]
call fcn.00407030
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 7
call fcn.00402090
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.00402160
jmp 0x430052
push 0x510bd0
lea ecx, [ebp - 0x14]
call fcn.00430190
lea eax, [ebp + 8]
lea ecx, [ebp - 0x1c]
push eax
call fcn.00402090
mov eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov ebx, eax
jne 0x430065
xor eax, eax
jmp 0x430084
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov eax, esp
push 0
push esi
push ebx
push eax
call fcn.00406870
push eax
call fcn.004dfbc5
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov eax, dword [ebp - 0x1c]
test eax, eax
mov ebx, eax
je 0x4300c2
push eax
call edi
lea esi, [eax + eax + 2]
mov eax, esi
add eax, 3
and al, 0xfc
call fcn.004ded50
mov eax, esp
push 0
push esi
push ebx
push eax
call fcn.00406870
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x430111
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.00402160
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402160
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402160
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00402160
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00402160
or eax, 0xffffffff
jmp 0x43016c
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
mov eax, ecx
mov byte [ebp - 4], 4
mov esi, dword [edx]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x1c]
call fcn.00402160
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00402160
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.00402160
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00402160
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call fcn.00402160
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x2c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc