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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x45c
mov eax, dword [0x428050]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push esi
push edi
xor esi, esi
push 8
pop ecx
xor eax, eax
lea edi, [esp + 0x20]
push esi
mov dword [esp + 0x18], esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x429ef0
mov dword [0x42a0e0], eax
call fcn.00406c91
mov edi, eax
cmp edi, esi
jge 0x405a0c
push 0x403448
jmp 0x405bc4
cmp dword [0x429ef4], esi
jne 0x405adb
push 0x5c
push dword [0x429ef0]
call fcn.00418964
lea ebx, [eax + 2]
xor eax, eax
mov edi, 0x208
push edi
mov word [esp + 0x4c], ax
lea eax, [esp + 0x4e]
push esi
push eax
call fcn.0041d340
add esp, 0x14
push ebx
mov ebx, 0x104
lea eax, [esp + 0x44]
push ebx
push eax
call fcn.00418992
add esp, 0xc
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
xor eax, eax
push edi
mov word [esp + 0x254], ax
lea eax, [esp + 0x256]
push esi
push eax
call fcn.0041d340
add esp, 0xc
push ebx
lea eax, [esp + 0x254]
push eax
push 0x403468
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [esp + 0x40]
push ecx
sub ebx, eax
push 0x403474
lea eax, [esp + eax*2 + 0x258]
push ebx
push eax
call fcn.004189f5
add esp, 0x10
lea eax, [esp + 0x250]
push eax
xor eax, eax
mov ecx, 0x429ef4
call fcn.00408c08
mov edi, eax
cmp edi, esi
jge 0x405ad3
push 0x4034b0
jmp 0x405bc4
cmp dword [0x429ef4], esi
je 0x405ae6
push dword [0x429ef4]
call fcn.004087ce
push dword [0x429ef0]
lea eax, [esp + 0x14]
lea ebx, [esp + 0x24]
call fcn.00406142
mov edi, eax
cmp edi, esi
jge 0x405b09
push 0x4034c8
jmp 0x405bc4
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x18]
call fcn.004061af
mov edi, eax
cmp edi, esi
jge 0x405b2c
push 0x4034e0
jmp 0x405bc4
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x405b39
cmp word [eax], si
jne 0x405b43
mov dword [0x429f04], 1
push dword [esp + 0x1c]
mov ecx, 0x429ef0
push dword [esp + 0x1c]
call fcn.00407070
mov edi, eax
cmp edi, esi
jge 0x405b62
push 0x403508
jmp 0x405bc4
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x20]
push eax
push dword [esp + 0x14]
push 0x429ef0
call fcn.004062a4
mov edi, eax
cmp edi, esi
jge 0x405b94
push 0x403548
jmp 0x405bc4
call ebx
sub eax, dword [esp + 0x18]
call fcn.00405950
cmp dword [0x429f04], esi
jne 0x405bcc
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x40]
push dword [esp + 0x40]
call fcn.00405e04
mov edi, eax
cmp edi, esi
jge 0x405bcc
push 0x40355c
push edi
call fcn.004088ec
pop ecx
pop ecx
call fcn.00406958
mov ebx, dword [esp + 0x10]
cmp ebx, esi
je 0x405bde
call fcn.0040a587
cmp dword [esp + 0x14], 0xcabf00d1
jne 0x405bee
mov dword [esp + 0x14], esi
jmp 0x405bf8
mov ebx, 0x429ef0
call fcn.004064e1
cmp edi, esi
jge 0x405c0d
cmp edi, 0x80070642
je 0x405c0d
mov esi, edi
call fcn.00405cda
xor esi, esi
push edi
push 0x403574
push 1
call fcn.00408870
mov dword [esp + 0x1c], esi
add esp, 0xc
lea esi, [esp + 0x10]
call fcn.004091d5
test eax, eax
js 0x405c41
push dword [esp + 0x10]
push 0x404e04
push 1
call fcn.00408870
add esp, 0xc
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x405c52
push dword [esp + 0x10]
call fcn.004091af
mov eax, dword [0x429140]
mov dword [0x42a11c], esi
cmp eax, 0xffffffff
je 0x405c70
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x429140], 0xffffffff
mov eax, dword [0x42a120]
cmp eax, esi
je 0x405c85
push eax
call fcn.004091af
mov dword [0x42a120], esi
mov eax, dword [0x429ef8]
cmp eax, esi
je 0x405c94
push eax
call fcn.004091af
mov eax, dword [0x429ef0]
cmp eax, esi
je 0x405ca3
push eax
call fcn.004091af
mov eax, dword [0x429ef4]
cmp eax, esi
je 0x405cb2
push eax
call fcn.004091af
cmp edi, esi
jl 0x405cbc
mov eax, dword [esp + 0x14]
jmp 0x405cc3
mov eax, edi
and eax, 0xffff
mov ecx, dword [esp + 0x464]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418955
mov esp, ebp
pop ebp
ret 0x10