Function at 0x10036210
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1025b558
push eax
mov dword fs:[0], esp
sub esp, 0x34
push esi
push edi
mov edi, dword [esp + 0x4c]
xor esi, esi
cmp edi, esi
jne 0x10036247
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov eax, dword [0x1030aa70]
cmp eax, esi
je 0x1003626a
push edi
push str.CTSCDTVPNGatewayMgr::Host2IP_______s_
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x14
push ebx
push ebp
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
push 0x102f8ff0
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.1009cf30
mov eax, dword [0x102f8fe4]
mov dword [esp + 0x4c], esi
lea ebp, [eax - 1]
cmp ebp, esi
jl 0x100363ed
mov ebx, ebp
shl ebx, 4
mov eax, dword [0x102f8fe0]
lea esi, [ebx + eax]
mov eax, dword [ebx + eax + 4]
test eax, eax
je 0x10036369
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10036369
push edi
push eax
call fcn.10077005
add esp, 8
test eax, eax
jne 0x10036369
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
xor edi, edi
cmp eax, ecx
jae 0x100362ee
add eax, 0x927c0
cmp eax, ecx
jb 0x100362ee
mov edi, 1
mov eax, dword [0x1030aa70]
test eax, eax
je 0x1003631d
mov ecx, dword [esi + 8]
mov edx, dword [esi + 4]
mov eax, dword [esi + 0xc]
push ecx
push edx
push edi
push eax
push str.CTSCDTVPNGatewayMgr::Host2IP_1__Fail:_d__TickVaild:_d__Host:_s__IP:_s_
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x20
test edi, edi
jne 0x10036377
mov eax, dword [esi + 4]
push eax
call fcn.1024ac9a
mov esi, dword [esi + 8]
push esi
call fcn.1024ac9a
mov eax, dword [0x102f8fe4]
add esp, 8
sub eax, ebp
dec eax
je 0x1003635a
shl eax, 4
push eax
mov eax, dword [0x102f8fe0]
lea ecx, [ebx + eax + 0x10]
lea edx, [ebx + eax]
push ecx
push edx
call fcn.10077870
add esp, 0xc
mov eax, dword [0x102f8fe4]
mov edi, dword [esp + 0x54]
dec eax
mov dword [0x102f8fe4], eax
dec ebp
sub ebx, 0x10
test ebp, ebp
jge 0x100362a3
jmp 0x100363ed
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x100363bf
lea ecx, [esp + 0x34]
call fcn.100945b0
mov ecx, dword [esi + 8]
lea eax, [esp + 0x34]
push eax
push 0x102c4818
push ecx
mov byte [esp + 0x58], 1
call fcn.1009b090
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.101a09e0
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0
call fcn.100945c0
mov eax, dword [0x1030aa70]
mov dword [esp + 0x18], 1
test eax, eax
je 0x100363e9
push str.CTSCDTVPNGatewayMgr::Host2IP__Get_Cache
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x28]
call fcn.1009cfe0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1003670f
mov ecx, dword [0x1026c87c]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x10]
mov byte [esp + 0x4c], 2
push edx
push edi
call fcn.1006a390
add esp, 8
test eax, eax
je 0x10036440
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x10036440
mov dword [esp + 0x14], 0
jmp 0x1003644d
call fcn.10036130
test eax, eax
jne 0x10036701
xor ecx, ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov dword [esp + 0x38], eax
call fcn.10076fb2
mov edx, dword [esp + 0x14]
mov ebx, eax
mov ebp, dword [edx - 8]
lea edi, [ebx + ebx + 2]
push edi
call fcn.1024ac71
mov esi, eax
lea eax, [ebp + ebp + 2]
push eax
mov dword [esp + 0x30], esi
call fcn.1024ac71
add esp, 0xc
mov dword [esp + 0x1c], eax
test esi, esi
je 0x100366ef
test eax, eax
je 0x100366ef
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x58]
push eax
push esi
call fcn.10077828
mov ebx, dword [esp + 0x28]
lea ecx, [ebp + ebp + 2]
mov edx, ecx
xor eax, eax
mov edi, ebx
add esp, 0xc
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
cmp ebp, edi
jbe 0x100364f7
mov eax, dword [esp + 0x10]
push ebp
push eax
push ebx
call fcn.10077828
add esp, 0xc
cmp dword [0x1030aa70], edi
je 0x10036541
mov ecx, dword [esp + 0x14]
push ebx
push esi
push ecx
push str.CTSCDTVPNGatewayMgr::Host2IP_2__Fail:_d__Host:_s__IP:_s_
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
mov eax, dword [0x1030aa70]
add esp, 0x1c
cmp eax, edi
je 0x10036541
push str.CTSCDTVPNGatewayMgr::Host2IP__DNS_Query
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x1030a1dc
call fcn.100a4680
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.1009cfc0
mov eax, dword [0x102f8fe4]
mov ebx, eax
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x100366c5
lea ebp, [ebx + 1]
cmp ebp, edi
jne 0x1003658f
mov eax, dword [0x102f8fe0]
cmp eax, edi
je 0x1003657e
push eax
call fcn.1024ac9a
add esp, 4
mov dword [0x102f8fe0], edi
mov dword [0x102f8fe8], edi
mov dword [0x102f8fe4], edi
jmp 0x100366c5
mov edx, dword [0x102f8fe0]
cmp edx, edi
jne 0x100365d4
mov edi, ebp
shl edi, 4
push edi
call fcn.1024ac71
mov edx, eax
mov ecx, edi
mov dword [0x102f8fe0], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x102f8fe8], ebp
mov dword [0x102f8fe4], ebp
jmp 0x100366c5
mov edi, dword [0x102f8fe8]
cmp ebp, edi
jg 0x1003660b
cmp ebp, eax
jle 0x10036600
mov ecx, ebp
sub ecx, eax
shl eax, 4
shl ecx, 4
add eax, edx
mov edx, ecx
mov edi, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov dword [0x102f8fe4], ebp
jmp 0x100366c5
mov ecx, dword [0x102f8fec]
test ecx, ecx
jne 0x10036639
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1003662c
mov ecx, 4
jmp 0x10036639
cmp ecx, 0x400
jle 0x10036639
mov ecx, 0x400
lea eax, [ecx + edi]
cmp ebp, eax
mov dword [esp + 0x54], eax
jl 0x10036648
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x54]
shl eax, 4
push eax
call fcn.1024ac71
mov ecx, dword [0x102f8fe4]
mov esi, dword [0x102f8fe0]
shl ecx, 4
mov ebx, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [0x102f8fe4]
mov ecx, ebp
sub ecx, eax
shl eax, 4
shl ecx, 4
add eax, ebx
mov edx, ecx
mov edi, eax
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [0x102f8fe0]
push eax
call fcn.1024ac9a
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x2c]
mov dword [0x102f8fe0], ebx
mov ebx, dword [esp + 0x28]
add esp, 8
mov dword [0x102f8fe4], ebp
mov dword [0x102f8fe8], ecx
mov eax, dword [0x102f8fe0]
mov edx, dword [esp + 0x34]
shl ebx, 4
add ebx, eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [ebx], edx
mov dword [ebx + 4], esi
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], ecx
lea ecx, [esp + 0x28]
call fcn.1009cfe0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.1006a460
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.1008ec90
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call fcn.1009cf90
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x40
ret