Function at 0x435f00
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x44cbd8
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x45f2b0]
xor eax, esp
mov dword [esp + 0x58], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45f2b0]
xor eax, esp
push eax
lea eax, [esp + 0x74]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x84]
xor ebx, ebx
cmp dword [ebp + 0x4c], ebx
jne 0x435f4a
mov eax, 0x80004005
jmp 0x436334
push ebx
call fcn.00439283
mov ecx, dword [ebp + 0x44]
add esp, 4
cmp ecx, edx
jl 0x435f6a
jg 0x435f63
mov edx, dword [ebp + 0x40]
cmp edx, eax
jbe 0x435f6a
xor eax, eax
jmp 0x436334
push ebx
call fcn.00439283
mov ecx, dword [ebp + 0x10]
add esp, 4
add eax, 0xe10
adc edx, ebx
sub ecx, dword [ebp + 0xc]
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x44], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
xor esi, esi
add eax, edx
je 0x435fd0
lea ecx, [ecx]
push esi
mov eax, ebp
call fcn.00436550
mov edi, eax
add edi, 0x1c
call fcn.00429ca0
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
cmp esi, ecx
jb 0x435fa0
mov dword [ebp + 0x38], ebx
cmp dword [ebp + 0x34], 0x10
jb 0x435fde
mov eax, dword [ebp + 0x20]
jmp 0x435fe1
lea eax, [ebp + 0x20]
push eax
call sub.WS2_32.dll_gethostbyname
cmp eax, ebx
je 0x435f40
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp + 0x38], ecx
call fcn.00417cd0
test eax, eax
je 0x436007
call fcn.00401440
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x38]
mov dword [esp + 0x40], edx
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
xor esi, esi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x3c], 1
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], esi
je 0x43631f
push 4
mov dword [esp + 0x1c], ebx
call fcn.004392d4
add esp, 4
cmp eax, ebx
je 0x436059
lea ecx, [esp + 0x1c]
mov dword [eax], ecx
jmp 0x43605b
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push esi
mov eax, ebp
mov dword [esp + 0x80], 1
call fcn.00436550
cmp dword [eax + 0x18], 0x10
jb 0x436089
mov eax, dword [eax + 4]
jmp 0x43608c
add eax, 4
push ebx
lea edx, [esp + 0x1c]
push edx
lea ecx, [esp + 0x44]
push ecx
push ebx
mov esi, 0xf
push esi
push eax
call sub.DNSAPI.dll_DnsQuery_A
cmp eax, ebx
jne 0x436279
mov edi, dword [esp + 0x18]
cmp edi, ebx
je 0x4361d4
jmp 0x4360c0
cmp word [edi + 8], si
jne 0x4361ca
mov edx, dword [esp + 0x14]
push edx
mov eax, ebp
call fcn.00436550
cmp dword [eax + 0x18], 0x10
jb 0x4360e1
mov eax, dword [eax + 4]
jmp 0x4360e4
add eax, 4
mov ecx, dword [edi + 4]
push ecx
push eax
call fcn.004394ce
add esp, 8
test eax, eax
jne 0x4361ca
mov ecx, dword [edi + 0x18]
movzx edx, word [edi + 0x1c]
mov eax, ecx
mov dword [esp + 0x60], esi
mov dword [esp + 0x44], edx
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x436115
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x50]
call fcn.00403090
mov byte [esp + 0x7c], 2
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
jne 0x43613a
xor edx, edx
jmp 0x436143
mov edx, dword [esp + 0x30]
sub edx, ecx
sar edx, 5
mov eax, dword [esp + 0x2c]
mov esi, eax
sub esi, ecx
sar esi, 5
cmp esi, edx
mov esi, eax
jae 0x43617a
mov byte [esp + 0x34], bl
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x34]
push ecx
push edx
push 1
push eax
lea ecx, [esp + 0x54]
call fcn.00405e00
add esp, 0x10
add esi, 0x20
mov dword [esp + 0x2c], esi
jmp 0x43619c
cmp ecx, eax
jbe 0x436183
call fcn.00437e82
mov eax, dword [esp + 0x1c]
push esi
push eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x70]
push ecx
lea eax, [esp + 0x2c]
call fcn.004054e0
mov byte [esp + 0x7c], 1
cmp dword [esp + 0x60], 0x10
jb 0x4361b5
mov edx, dword [esp + 0x4c]
push edx
call fcn.00437f8b
add esp, 4
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
mov esi, 0xf
mov edi, dword [edi]
cmp edi, ebx
jne 0x4360c0
mov eax, dword [esp + 0x2c]
sub eax, dword [esp + 0x28]
xor esi, esi
sar eax, 5
test eax, eax
jbe 0x436279
lea esp, [esp]
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.00405340
cmp dword [eax], 0xd
jne 0x436213
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.00405340
add eax, 4
cmp dword [eax + 0x14], ebx
jne 0x436225
mov ecx, dword [esp + 0x2c]
sub ecx, dword [esp + 0x28]
inc esi
sar ecx, 5
cmp esi, ecx
jb 0x4361f0
jmp 0x436279
mov eax, esi
lea ecx, [esp + 0x1c]
call fcn.00405340
mov edx, dword [esp + 0x14]
mov esi, eax
push edx
mov eax, ebp
add esi, 4
call fcn.00436550
push 0xffffffffffffffff
add eax, 0x1c
push ebx
push esi
mov ecx, eax
call fcn.00402d10
call fcn.00417e70
test eax, eax
je 0x43625d
call fcn.00435410
mov dword [esp + 0x38], 1
call fcn.0042f950
sub eax, 1
jne 0x436279
call fcn.004354b0
call fcn.00435560
mov eax, dword [esp + 0x18]
cmp eax, ebx
je 0x43628d
push 1
push eax
call sub.DNSAPI.dll_DnsFree
mov dword [esp + 0x18], ebx
mov dword [esp + 0x7c], 0xffffffff
mov esi, dword [esp + 0x28]
cmp esi, ebx
je 0x4362dc
mov edi, dword [esp + 0x2c]
cmp esi, edi
je 0x4362cf
add esi, 0x1c
cmp dword [esi], 0x10
jb 0x4362b9
mov eax, dword [esi - 0x14]
push eax
call fcn.00437f8b
add esp, 4
mov dword [esi], 0xf
mov dword [esi - 4], ebx
mov byte [esi - 0x14], bl
add esi, 0x20
lea ecx, [esi - 0x1c]
cmp ecx, edi
jne 0x4362a8
mov edx, dword [esp + 0x28]
push edx
call fcn.00437f8b
add esp, 4
mov eax, dword [esp + 0x1c]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
call fcn.00437f8b
mov ecx, dword [ebp + 0x10]
sub ecx, dword [ebp + 0xc]
mov esi, dword [esp + 0x18]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
inc esi
add ecx, edx
add esp, 4
mov dword [esp + 0x14], esi
cmp esi, ecx
jb 0x43603f
mov eax, dword [esp + 0x38]
neg eax
sbb eax, eax
and eax, 0x7fffbffb
mov dword [ebp + 0x48], ebx
add eax, 0x80004005
mov ecx, dword [esp + 0x74]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00437983
add esp, 0x6c
ret 4