Function at 0x10016760
Capabilities:
Check for time delay via gettickcount
Query environment variable

Disassembly:
push 0xffffffffffffffff
push 0x100194bc
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x10021138]
xor eax, esp
mov dword [esp + 0x678], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10021138]
xor eax, esp
push eax
lea eax, [esp + 0x690]
mov dword fs:[0], eax
mov ebp, dword [0x1002364c]
xor edi, edi
push 0xffffffffffffffff
mov ebx, 7
lea eax, [ebp + 8]
push edi
lea ecx, [esp + 0x24]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], edi
mov word [esp + 0x28], di
call fcn.10002bf0
push edi
lea eax, [ebp + 0x64]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x24]
mov dword [esp + 0x6a0], edi
call fcn.10002e60
push 0x206
lea ecx, [esp + 0x27e]
push edi
push ecx
mov word [esp + 0x284], di
call fcn.10007f00
push 0x206
lea edx, [esp + 0x82]
push edi
push edx
mov word [esp + 0x88], di
call fcn.10007f00
add esp, 0x18
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
lea ecx, [esp + 0x40]
mov byte [esp + 0x6a0], 1
call fcn.10002bf0
xor bl, bl
cmp dword [esp + 0x4c], edi
jne 0x1001698a
mov eax, dword [0x1002296c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1002296c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x698], 2
call fcn.10015f20
test eax, eax
je 0x100168a1
mov esi, dword [esp + 0x14]
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10016880
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x40]
call fcn.10002ff0
mov bl, 1
jmp 0x10016962
push 0x208
lea eax, [esp + 0x486]
push edi
push eax
mov word [esp + 0x48c], di
call fcn.10007f00
add esp, 0xc
push 0x104
lea ecx, [esp + 0x484]
push ecx
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [0x1002296c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1002296c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x480]
push ecx
push 0x1001cdcc
lea edi, [esp + 0x20]
mov byte [esp + 0x6a0], 3
call fcn.10003390
add esp, 8
push 0xe
mov edx, edi
push edx
call fcn.100039b0
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016922
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x40]
call fcn.10002ff0
lea eax, [edi - 0x10]
mov byte [esp + 0x698], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10016960
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
mov byte [esp + 0x698], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1001698a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [0x1002296c]
mov eax, dword [edx + 0xc]
mov ecx, 0x1002296c
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
xor ecx, ecx
test bl, bl
setne cl
mov byte [esp + 0x698], 4
mov dword [0x10023688], 3
mov dword [0x1002368c], ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [0x10023650]
mov eax, 0x10624dd3
mul edx
shr edx, 6
test bl, bl
mov dword [0x10023690], edx
je 0x10016a2b
lea ecx, [esp + 0x14]
call fcn.100175e0
test eax, eax
je 0x10016a2b
mov edx, dword [esp + 0x14]
cmp dword [edx - 4], 1
jle 0x10016a0b
mov eax, dword [edx - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10003100
mov edx, dword [esp + 0x14]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10016a10
sub eax, esi
sar eax, 1
push eax
push edx
mov esi, 0x10023694
call fcn.10002ff0
mov esi, 0x10023680
call fcn.10018b90
test eax, eax
je 0x10016a3e
call fcn.100189d0
mov eax, dword [esp + 0x3c]
mov ebx, 8
cmp dword [esp + 0x50], ebx
jae 0x10016a51
lea eax, [esp + 0x3c]
mov edx, dword [ebp + 0x54]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push edx
lea eax, [esp + 0x280]
push str._supplyid_d__installmode2__startmain1__silent1___D_s
push eax
call esi
mov eax, dword [esp + 0x4c]
add esp, 0x10
cmp dword [esp + 0x50], ebx
jae 0x10016a7c
lea eax, [esp + 0x3c]
mov ecx, dword [ebp + 0x54]
push eax
push ecx
lea edx, [esp + 0x78]
push str._supplyid_d__installmode2__startmain1__S___D_s
push edx
call esi
mov ecx, dword [esp + 0x30]
add esp, 0x10
cmp dword [esp + 0x34], ebx
jae 0x10016a9e
lea ecx, [esp + 0x20]
push ebp
call fcn.10015e10
add ebp, 0x80
mov eax, dword [ebp + 0x20c]
mov edx, dword [eax]
lea ecx, [ebp + 0x20c]
push 0x400
push edi
call edx
test eax, eax
jne 0x10016b24
lea eax, [esp + 0x278]
push eax
mov ecx, ebp
mov byte [ebp], 1
call fcn.10003680
test al, al
mov eax, dword [esp + 0x20]
je 0x10016aec
cmp dword [esp + 0x34], ebx
jae 0x10016ae9
lea eax, [esp + 0x20]
push edi
jmp 0x10016afb
cmp dword [esp + 0x34], ebx
jae 0x10016af6
lea eax, [esp + 0x20]
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.10017100
add esp, 8
cmp byte [ebp], 0
mov esi, eax
je 0x10016b42
mov edx, dword [ebp + 0x20c]
mov eax, dword [edx + 0x14]
lea ecx, [ebp + 0x20c]
push 0x2710
call eax
jmp 0x10016b42
cmp dword [esp + 0x34], ebx
mov eax, dword [esp + 0x20]
jae 0x10016b32
lea eax, [esp + 0x20]
lea ecx, [esp + 0x70]
push ecx
push eax
call fcn.10017100
add esp, 8
mov esi, eax
cmp esi, edi
jne 0x10016b94
mov dword [0x10023688], 4
mov dword [0x1002368c], 2
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, eax
sub edx, dword [0x10023650]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov esi, 0x10023680
mov dword [0x10023690], edx
call fcn.10018b90
test eax, eax
je 0x10016d08
call fcn.100189d0
jmp 0x10016d08
lea ecx, [esp + 0x14]
call fcn.100175e0
mov eax, dword [0x1002296c]
mov edx, dword [eax + 0xc]
mov ecx, 0x1002296c
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x698], 5
call fcn.10015f20
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 4], 1
jle 0x10016be0
mov eax, dword [ecx - 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
call fcn.10003100
mov ecx, dword [esp + 0x14]
mov eax, ecx
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], edi
mov word [esp + 0x58], di
lea esi, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, di
jne 0x10016bf6
sub eax, esi
sar eax, 1
push eax
push ecx
lea esi, [esp + 0x5c]
call fcn.10002ff0
mov byte [esp + 0x698], 6
mov eax, dword [esp + 0x68]
mov edi, 5
mov ecx, esi
mov dword [0x10023688], 4
call fcn.10003af0
neg eax
sbb eax, eax
neg eax
push 0xffffffffffffffff
mov dword [0x1002368c], eax
xor ebp, ebp
push ebp
mov eax, esi
mov ecx, 0x10023694
call fcn.10002bf0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [esp + 0x18]
mov edx, eax
sub edx, dword [0x10023650]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov dword [0x10023690], edx
cmp dword [edi - 4], 1
jle 0x10016c88
mov eax, dword [edi - 0xc]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.10003100
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x10016c90
sub eax, edx
sar eax, 1
push eax
push edi
mov esi, 0x100236b0
call fcn.10002ff0
mov esi, 0x10023680
call fcn.10018b90
test eax, eax
je 0x10016cbe
call fcn.100189d0
cmp dword [esp + 0x6c], ebx
jb 0x10016cd1
mov edx, dword [esp + 0x58]
push edx
call fcn.10004382
add esp, 4
add edi, 0xfffffff0
mov dword [esp + 0x6c], 7
mov dword [esp + 0x68], ebp
mov word [esp + 0x58], bp
mov byte [esp + 0x698], 4
lea eax, [edi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10016d06
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
xor edi, edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x698], 1
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x10016d3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x50], ebx
jb 0x10016d4e
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.10004382
add esp, 4
cmp dword [esp + 0x34], ebx
mov dword [esp + 0x50], 7
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], di
jb 0x10016d72
mov edx, dword [esp + 0x20]
push edx
call fcn.10004382
add esp, 4
mov ecx, dword [esp + 0x690]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x678]
xor ecx, esp
call fcn.10004387
add esp, 0x688
ret