Function at 0x4306c0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0380
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 0x4306ed
or eax, 0xffffffff
jmp 0x430a43
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 0x430728
push esi
lea ecx, [ebp - 0x10]
call fcn.00402190
test eax, eax
je 0x430728
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 0x430777
mov eax, dword [ebp - 0x10]
mov ecx, dword [0x50d0e4]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x43076f
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x43076f
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
or eax, 0xffffffff
jmp 0x430a43
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]
call fcn.004174e0
mov ecx, dword [0x50d0e0]
mov dword [ebp + 8], ecx
test eax, eax
mov byte [ebp - 4], 2
jle 0x43083a
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 0x43080b
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4307de
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4307e5
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4307f4
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.004021f0
jmp 0x43080b
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]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x430883
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x430883
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff4
push eax
call fcn.004de3a6
add esp, 4
jmp 0x430883
mov eax, dword [ebp - 0x18]
cmp ecx, eax
je 0x430883
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x430855
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x43085c
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x43086b
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp + 8]
call fcn.004021f0
jmp 0x430883
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 0x43093e
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 0x43090f
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4308e2
mov edx, dword [0x50d0e4]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4308e9
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4308f8
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [ebp - 0x14]
call fcn.004021f0
jmp 0x43090f
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]
call fcn.00402160
jmp 0x430957
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 0x43096a
xor eax, eax
jmp 0x430989
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 0x4309c7
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 0x4309ff
lea ecx, [ebp - 0x1c]
call fcn.00402160
lea ecx, [ebp - 0x14]
call fcn.00402160
lea ecx, [ebp + 8]
call fcn.00402160
lea ecx, [ebp - 0x18]
call fcn.00402160
lea ecx, [ebp - 0x10]
call fcn.00402160
or eax, 0xffffffff
jmp 0x430a43
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov edi, dword [ebp + 0xc]
mov eax, ecx
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]
call fcn.00402160
lea ecx, [ebp + 8]
call fcn.00402160
lea ecx, [ebp - 0x18]
call fcn.00402160
lea ecx, [ebp - 0x10]
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