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

Disassembly:
push 0xffffffffffffffff
push 0x45a47e
mov eax, dword fs:[0]
push eax
sub esp, 0x684
mov eax, dword [0x474534]
xor eax, esp
mov dword [esp + 0x680], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x474534]
xor eax, esp
push eax
lea eax, [esp + 0x698]
mov dword fs:[0], eax
mov ebp, dword [0x478694]
call fcn.0043d030
xor edi, edi
push 0xffffffffffffffff
mov ebx, 7
lea eax, [ebp + 8]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], edi
mov word [esp + 0x2c], di
call fcn.004027b0
push edi
lea eax, [ebp + 0x64]
push eax
or eax, 0xffffffff
lea esi, [esp + 0x28]
mov dword [esp + 0x6a8], edi
call fcn.00402a30
push 0x206
lea ecx, [esp + 0x282]
push edi
push ecx
mov word [esp + 0x288], di
call fcn.00408780
add esp, 0xc
push 0x206
lea edx, [esp + 0x7a]
push edi
push edx
mov word [esp + 0x80], di
call fcn.00408780
add esp, 0xc
mov dword [esp + 0x54], ebx
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
push 0xffffffffffffffff
push edi
lea eax, [ebp + 0x24]
lea ecx, [esp + 0x44]
mov byte [esp + 0x6a8], 1
call fcn.004027b0
call fcn.0043c660
xor bl, bl
cmp dword [esp + 0x50], edi
jne 0x45943b
mov eax, dword [0x475a0c]
mov edx, dword [eax + 0xc]
mov ecx, 0x475a0c
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], 2
call fcn.00458a20
test eax, eax
je 0x459354
mov esi, dword [esp + 0x1c]
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x459333
sub eax, edx
sar eax, 1
push eax
push esi
lea esi, [esp + 0x44]
call fcn.00402bc0
mov bl, 1
jmp 0x459413
push 0x208
lea eax, [esp + 0x48a]
push edi
push eax
mov word [esp + 0x490], di
call fcn.00408780
add esp, 0xc
push 0x104
lea ecx, [esp + 0x488]
push ecx
push str._ProgramFiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov edx, dword [0x475a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x475a0c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x484]
push ecx
push 0x45e4fc
lea edi, [esp + 0x20]
mov byte [esp + 0x6a8], 3
call fcn.00402fb0
add esp, 8
push 0xe
mov edx, edi
push edx
call fcn.004036c0
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4593d5
sub eax, edx
sar eax, 1
push eax
push edi
lea esi, [esp + 0x44]
call fcn.00402bc0
lea eax, [edi - 0x10]
mov byte [esp + 0x6a0], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x459413
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x6a0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x45943b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.0043b140
mov eax, dword [esp + 0x40]
mov edi, 8
cmp dword [esp + 0x54], edi
jae 0x459453
lea eax, [esp + 0x40]
mov ecx, dword [ebp + 0x54]
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push eax
push ecx
lea edx, [esp + 0x284]
push str._supplyid_d__installmode2__startmain1__silent1__D_s
push edx
call esi
mov eax, dword [esp + 0x50]
add esp, 0x10
cmp dword [esp + 0x54], edi
jae 0x45947e
lea eax, [esp + 0x40]
push eax
mov eax, dword [ebp + 0x54]
push eax
lea ecx, [esp + 0x7c]
push 0x45e5a0
push ecx
call esi
mov eax, dword [esp + 0x34]
add esp, 0x10
cmp dword [esp + 0x38], edi
jae 0x4594a0
lea eax, [esp + 0x24]
push eax
mov ecx, ebp
call fcn.00458900
lea edi, [ebp + 0x80]
mov edx, dword [edi + 0x20c]
mov eax, dword [edx]
lea ecx, [edi + 0x20c]
push 0x400
push 0
call eax
test eax, eax
jne 0x459649
lea ecx, [esp + 0x27c]
push ecx
mov ecx, edi
mov byte [edi], 1
call fcn.00403340
mov edx, dword [0x475a0c]
test al, al
mov eax, dword [edx + 0xc]
mov ecx, 0x475a0c
je 0x459589
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
xor ecx, ecx
test bl, bl
setne cl
mov byte [esp + 0x6a0], 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x478748], 3
mov dword [0x47874c], ecx
call ebx
mov edx, eax
sub edx, dword [0x478698]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov esi, 0x478740
mov dword [0x478750], edx
call fcn.00459b30
test eax, eax
je 0x459550
call fcn.00459970
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x45955f
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00453c50
mov esi, eax
lea eax, [ebp - 0x10]
add esp, 8
mov byte [esp + 0x6a0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x45961b
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
xor ecx, ecx
test bl, bl
setne cl
mov byte [esp + 0x6a0], 5
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x478748], 3
mov dword [0x47874c], ecx
call ebx
mov edx, eax
sub edx, dword [0x478698]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov esi, 0x478740
mov dword [0x478750], edx
call fcn.00459b30
test eax, eax
je 0x4595e4
call fcn.00459970
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4595f3
lea eax, [esp + 0x24]
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00453c50
mov esi, eax
lea eax, [ebp - 0x10]
add esp, 8
mov byte [esp + 0x6a0], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x459627
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [edi], 0
je 0x4596f5
mov edx, dword [edi + 0x20c]
mov eax, dword [edx + 0x14]
lea ecx, [edi + 0x20c]
push 0x2710
jmp 0x4596f3
mov edx, dword [0x475a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x475a0c
call eax
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
xor ecx, ecx
test bl, bl
setne cl
mov byte [esp + 0x6a0], 6
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x478748], 3
mov dword [0x47874c], ecx
call ebx
mov edx, eax
sub edx, dword [0x478698]
mov eax, 0x10624dd3
mul edx
shr edx, 6
mov esi, 0x478740
mov dword [0x478750], edx
call fcn.00459b30
test eax, eax
je 0x4596b2
call fcn.00459970
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x4596c1
lea eax, [esp + 0x24]
lea ecx, [esp + 0x74]
push ecx
push eax
call fcn.00453c50
mov esi, eax
lea eax, [ebp - 0x10]
add esp, 8
mov byte [esp + 0x6a0], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4596f5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
cmp esi, edi
jne 0x459745
mov dword [0x478748], 4
mov dword [0x47874c], 2
call ebx
mov ecx, eax
sub ecx, dword [0x478698]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov esi, 0x478740
mov dword [0x478750], edx
call fcn.00459b30
test eax, eax
je 0x4598f5
call fcn.00459970
jmp 0x4598f5
mov edx, dword [0x475a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x475a0c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x6a0], 7
call fcn.00453fa0
mov edx, dword [0x475a0c]
mov eax, dword [edx + 0xc]
mov ecx, 0x475a0c
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x6a0], 8
call fcn.00458a20
mov ebp, dword [esp + 0x1c]
cmp dword [ebp - 4], 1
jle 0x4597b1
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
call fcn.00402d60
mov ebp, dword [esp + 0x1c]
mov eax, ebp
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], edi
mov word [esp + 0x5c], di
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4597c7
sub eax, edx
sar eax, 1
push eax
push ebp
lea esi, [esp + 0x60]
call fcn.00402bc0
mov byte [esp + 0x6a0], 9
cmp dword [esp + 0x70], 8
mov ecx, dword [esp + 0x5c]
mov dword [0x478748], 4
jae 0x459802
lea ecx, [esp + 0x5c]
mov edi, dword [esp + 0x6c]
mov eax, dword [0x475520]
call fcn.00403800
neg eax
sbb eax, eax
neg eax
mov dword [0x47874c], eax
call ebx
mov edi, dword [esp + 0x18]
mov ecx, eax
sub ecx, dword [0x478698]
mov eax, 0x10624dd3
mul ecx
shr edx, 6
mov dword [0x478750], edx
cmp dword [edi - 4], 1
jle 0x459851
mov edx, dword [edi - 0xc]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00402d60
mov edi, dword [esp + 0x18]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x459856
sub eax, edx
sar eax, 1
push eax
push edi
mov esi, 0x478770
call fcn.00402bc0
mov esi, 0x478740
call fcn.00459b30
test eax, eax
je 0x459884
call fcn.00459970
cmp dword [esp + 0x70], 8
jb 0x459898
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.00404706
add esp, 4
xor eax, eax
mov dword [esp + 0x6c], eax
mov word [esp + 0x5c], ax
lea eax, [edi - 0x10]
mov dword [esp + 0x70], 7
mov byte [esp + 0x6a0], 7
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4598cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov byte [esp + 0x6a0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4598f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor edi, edi
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0043a960
mov esi, 8
cmp dword [esp + 0x54], esi
jb 0x45991d
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00404706
add esp, 4
cmp dword [esp + 0x38], esi
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
jb 0x459941
mov edx, dword [esp + 0x24]
push edx
call fcn.00404706
add esp, 4
mov ecx, dword [esp + 0x698]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x680]
xor ecx, esp
call fcn.0040470b
add esp, 0x690
ret