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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024ddf8
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 0x1002d9c7
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
add esp, 0x40
ret
mov eax, dword [0x102f7658]
cmp eax, esi
je 0x1002d9ea
push edi
push str.CTSCDTVPNGatewayMgr::Host2IP_______s_
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x14
push ebx
push ebp
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 1
push 0x102e6238
lea ecx, [esp + 0x30]
mov dword [esp + 0x24], eax
call fcn.10091800
mov eax, dword [0x102e622c]
mov dword [esp + 0x4c], esi
lea ebp, [eax - 1]
cmp ebp, esi
jl 0x1002db6d
mov ebx, ebp
shl ebx, 4
mov eax, dword [0x102e6228]
lea esi, [ebx + eax]
mov eax, dword [ebx + eax + 4]
test eax, eax
je 0x1002dae9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1002dae9
push edi
push eax
call fcn.1006b991
add esp, 8
test eax, eax
jne 0x1002dae9
mov eax, dword [esi]
mov ecx, dword [esp + 0x1c]
xor edi, edi
cmp eax, ecx
jae 0x1002da6e
add eax, 0x927c0
cmp eax, ecx
jb 0x1002da6e
mov edi, 1
mov eax, dword [0x102f7658]
test eax, eax
je 0x1002da9d
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 0x102f6dc4
call fcn.10098fb0
add esp, 0x20
test edi, edi
jne 0x1002daf7
mov eax, dword [esi + 4]
push eax
call fcn.1023d925
mov esi, dword [esi + 8]
push esi
call fcn.1023d925
mov eax, dword [0x102e622c]
add esp, 8
sub eax, ebp
dec eax
je 0x1002dada
shl eax, 4
push eax
mov eax, dword [0x102e6228]
lea ecx, [ebx + eax + 0x10]
lea edx, [ebx + eax]
push ecx
push edx
call fcn.1006c200
add esp, 0xc
mov eax, dword [0x102e622c]
mov edi, dword [esp + 0x54]
dec eax
mov dword [0x102e622c], eax
dec ebp
sub ebx, 0x10
test ebp, ebp
jge 0x1002da23
jmp 0x1002db6d
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1002db3f
lea ecx, [esp + 0x34]
call fcn.10088e80
mov ecx, dword [esi + 8]
lea eax, [esp + 0x34]
push eax
push 0x102b3894
push ecx
mov byte [esp + 0x58], 1
call fcn.1008f960
mov edx, dword [esp + 0x64]
lea eax, [esp + 0x40]
push edx
push eax
call fcn.10195540
add esp, 0x14
lea ecx, [esp + 0x34]
mov byte [esp + 0x4c], 0
call fcn.10088e90
mov eax, dword [0x102f7658]
mov dword [esp + 0x18], 1
test eax, eax
je 0x1002db69
push str.CTSCDTVPNGatewayMgr::Host2IP__Get_Cache
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
mov edi, dword [esp + 0x54]
lea ecx, [esp + 0x28]
call fcn.100918b0
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x1002de8f
mov ecx, dword [0x1025e6e4]
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.1005f880
add esp, 8
test eax, eax
je 0x1002dbc0
mov eax, dword [esp + 0x10]
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x1002dbc0
mov dword [esp + 0x14], 0
jmp 0x1002dbcd
call fcn.1002d8b0
test eax, eax
jne 0x1002de81
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.1006b93e
mov edx, dword [esp + 0x14]
mov ebx, eax
mov ebp, dword [edx - 8]
lea edi, [ebx + ebx + 2]
push edi
call fcn.1023d8fc
mov esi, eax
lea eax, [ebp + ebp + 2]
push eax
mov dword [esp + 0x30], esi
call fcn.1023d8fc
add esp, 0xc
mov dword [esp + 0x1c], eax
test esi, esi
je 0x1002de6f
test eax, eax
je 0x1002de6f
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.1006c1b8
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 0x1002dc77
mov eax, dword [esp + 0x10]
push ebp
push eax
push ebx
call fcn.1006c1b8
add esp, 0xc
cmp dword [0x102f7658], edi
je 0x1002dcc1
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 0x102f6dc4
call fcn.10098fb0
mov eax, dword [0x102f7658]
add esp, 0x1c
cmp eax, edi
je 0x1002dcc1
push str.CTSCDTVPNGatewayMgr::Host2IP__DNS_Query
push str.SCDTVpnGW
push 0xffffffffffffffff
push 0x102f6dc4
call fcn.10098fb0
add esp, 0x10
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
call fcn.10091890
mov eax, dword [0x102e622c]
mov ebx, eax
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x1002de45
lea ebp, [ebx + 1]
cmp ebp, edi
jne 0x1002dd0f
mov eax, dword [0x102e6228]
cmp eax, edi
je 0x1002dcfe
push eax
call fcn.1023d925
add esp, 4
mov dword [0x102e6228], edi
mov dword [0x102e6230], edi
mov dword [0x102e622c], edi
jmp 0x1002de45
mov edx, dword [0x102e6228]
cmp edx, edi
jne 0x1002dd54
mov edi, ebp
shl edi, 4
push edi
call fcn.1023d8fc
mov edx, eax
mov ecx, edi
mov dword [0x102e6228], 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 [0x102e6230], ebp
mov dword [0x102e622c], ebp
jmp 0x1002de45
mov edi, dword [0x102e6230]
cmp ebp, edi
jg 0x1002dd8b
cmp ebp, eax
jle 0x1002dd80
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 [0x102e622c], ebp
jmp 0x1002de45
mov ecx, dword [0x102e6234]
test ecx, ecx
jne 0x1002ddb9
cdq
and edx, 7
add eax, edx
mov ecx, eax
sar ecx, 3
cmp ecx, 4
jge 0x1002ddac
mov ecx, 4
jmp 0x1002ddb9
cmp ecx, 0x400
jle 0x1002ddb9
mov ecx, 0x400
lea eax, [ecx + edi]
cmp ebp, eax
mov dword [esp + 0x54], eax
jl 0x1002ddc8
mov dword [esp + 0x54], ebp
mov eax, dword [esp + 0x54]
shl eax, 4
push eax
call fcn.1023d8fc
mov ecx, dword [0x102e622c]
mov esi, dword [0x102e6228]
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 [0x102e622c]
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 [0x102e6228]
push eax
call fcn.1023d925
mov ecx, dword [esp + 0x5c]
mov esi, dword [esp + 0x2c]
mov dword [0x102e6228], ebx
mov ebx, dword [esp + 0x28]
add esp, 8
mov dword [0x102e622c], ebp
mov dword [0x102e6230], ecx
mov eax, dword [0x102e6228]
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.100918b0
mov edx, dword [esp + 0x58]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.1005f950
add esp, 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x4c], 0
call fcn.10083560
lea ecx, [esp + 0x28]
mov dword [esp + 0x4c], 0xffffffff
call fcn.10091860
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