Function at 0x406730
Capabilities:
Check for time delay via gettickcount
Hide graphical window

Disassembly:
push 0xffffffffffffffff
push 0x4221de
mov eax, dword fs:[0]
push eax
sub esp, 0x340
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x33c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4292b4]
xor eax, esp
push eax
lea eax, [esp + 0x354]
mov dword fs:[0], eax
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push 0x128
push 0x40
mov dword [0x42b0e0], 0
call esi
mov ebp, eax
test ebp, ebp
je 0x406bea
push 0x125cc
push 0x40
call esi
test eax, eax
mov dword [ebp + 0x14], eax
je 0x406be1
push 0x104
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x250]
push edx
call esi
lea edi, [ebp + 8]
lea eax, [esp + 0x44]
push edi
push eax
call fcn.0040f4e0
add esp, 8
test eax, eax
mov dword [ebp + 4], eax
je 0x406be1
push eax
call fcn.0040f590
lea ecx, [esp + 0x48]
push ecx
mov dword [ebp + 0x10], eax
call fcn.0040e7d0
lea edx, [esp + 0x4c]
push edx
mov byte [eax], 0
call fcn.0040e030
add esp, 0xc
push eax
mov eax, dword [ebp + 0x14]
add eax, 0x3880
push eax
call esi
mov ecx, dword [ebp + 0x10]
mov esi, dword [edi]
push ecx
push esi
call fcn.00402280
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x406bd7
add esi, ebx
mov ecx, 0xb
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x18]
cmp al, 0x6c
jne 0x406bd7
mov edx, eax
shr edx, 8
cmp dl, 0x73
jne 0x406bd7
mov ecx, eax
shr ecx, 0x10
cmp cl, 0x66
jne 0x406bd7
shr eax, 0x18
cmp al, 0x78
jne 0x406bd7
mov al, byte [esp + 0x20]
test al, 8
je 0x406880
mov byte [0x42b5a8], 1
test al, 4
jne 0x40688d
call fcn.00401ae0
test al, al
je 0x4068b8
cmp byte [0x42b5a8], 0
jne 0x4068b8
mov edx, dword [0x42b48c]
push 0
push 0x401ad0
push 0
push 0xa5
push edx
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x42b5a4], eax
jmp 0x4068bd
mov eax, dword [0x42b5a4]
test eax, eax
je 0x40691f
cmp byte [0x42b5a8], 0
je 0x4068ed
push 4
push 1
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [0x42b5a4]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x406914
push 0
push eax
call fcn.0040f480
mov ecx, dword [0x42b5a4]
add esp, 8
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [0x42b5a4]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42b5a0], eax
test dword [esp + 0x1c], 0x100000
jne 0x40696d
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
cmp ecx, edx
je 0x40694c
mov eax, ecx
sub eax, edx
cmp eax, 1
je 0x40694c
mov dword [0x42b0e0], 6
jmp 0x406be1
mov eax, ecx
sub eax, edx
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
push eax
push ebx
push ecx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00402bd0
add esp, 0x10
test eax, eax
je 0x40693d
mov edi, dword [esp + 0x24]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x40698f
mov dword [0x42b0e0], 2
jmp 0x406be1
mov esi, dword [esp + 0x14]
mov edx, dword [ebp + 8]
add esi, 0x2c
push edi
add edx, esi
push edx
push ebx
call fcn.00412b30
mov edi, dword [esp + 0x3e]
add esp, 0xc
test edi, edi
je 0x4069ed
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x1177c], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x1177c]
test eax, eax
jne 0x4069d9
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x406be1
add esi, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
push edi
add ecx, esi
push ecx
push eax
call fcn.00412b30
add esp, 0xc
mov edx, dword [ebp + 0x14]
push ebx
push edx
call fcn.00406010
add esp, 8
test eax, eax
push ebx
je 0x4069ce
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp + 0x14]
mov ecx, 0xb
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x3878], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x20]
mov dword [edx + 0x387c], eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x3a]
movzx eax, word [esp + 0x3e]
mov dword [ecx + 0x11e10], edx
mov ecx, dword [ebp + 0x14]
movzx edx, word [esp + 0x40]
mov dword [ecx + 0x11f80], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x124bc], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x3878]
shr ecx, 3
push 1
and ecx, 0xffffff01
push ecx
lea edx, [eax + 0x4ba]
mov eax, dword [eax + 0x3990]
push edx
push eax
lea ecx, [esp + 0x158]
push ecx
call fcn.00401d00
lea edx, [esp + 0x15c]
push edx
call fcn.0040e080
mov ecx, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x18
lea eax, [esp + 0x148]
push eax
add ecx, 0x4ba
push ecx
call esi
mov eax, dword [ebp + 0x14]
test byte [eax + 0x3878], 4
je 0x406af1
add eax, 0x4ba
push eax
call fcn.0040e080
mov eax, dword [ebp + 0x14]
add esp, 4
lea edx, [eax + 0x3880]
push edx
add eax, 0x4ba
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0x14]
add eax, 0x4ba
push eax
call fcn.0040e080
add esp, 4
mov ecx, dword [ebp + 0x14]
xor eax, eax
test byte [ecx + 0x3878], 8
je 0x406b04
mov eax, 1
cmp dword [esp + 0x32], 0
jne 0x406b0f
test eax, eax
je 0x406b4b
push 0x800
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x3984], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x3984]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x3988], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x398c], 0x800
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x36]
add ecx, edx
push 0xec
mov dword [ebp], ecx
call fcn.00412a73
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x35c], 0
test eax, eax
je 0x406b81
mov ecx, eax
call fcn.00411520
jmp 0x406b83
xor eax, eax
mov dword [esp + 0x35c], 0xffffffff
mov dword [ebp + 0xc], eax
lea eax, [esp + 0x24c]
push eax
push 0x42b494
call esi
mov ecx, dword [ebp]
mov dword [0x42b598], ecx
mov edx, dword [ebp]
mov ecx, dword [ebp + 0xc]
push edx
lea eax, [esp + 0x250]
push eax
call fcn.00411780
test eax, eax
je 0x4069cd
mov ecx, dword [ebp + 0x14]
push ecx
mov ecx, 0x42b5c8
call fcn.00405880
mov eax, ebp
jmp 0x406bec
mov dword [0x42b0e0], 1
push ebp
call fcn.00405d40
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x354]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x33c]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x34c
ret