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

Disassembly:
push 0xffffffffffffffff
push 0x4261fc
mov eax, dword fs:[0]
push eax
sub esp, 0x450
mov eax, dword [0x42d2ec]
xor eax, esp
mov dword [esp + 0x44c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x42d2ec]
xor eax, esp
push eax
lea eax, [esp + 0x464]
mov dword fs:[0], eax
push 0x128
push 0x40
mov dword [0x42f140], 0xa
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4065f7
mov dword [0x42f140], 2
jmp 0x406b4c
push 0x129e8
call fcn.0041377f
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x46c], 0
test eax, eax
je 0x406620
mov ecx, eax
call fcn.004047c0
jmp 0x406622
xor eax, eax
mov dword [esp + 0x46c], 0xffffffff
test eax, eax
mov dword [ebp + 0x14], eax
je 0x406896
push 0x104
lea eax, [esp + 0x54]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406663
push ebp
call fcn.00405c70
mov dword [0x42f140], 0xc
jmp 0x406b49
lea ecx, [esp + 0x50]
push ecx
call fcn.0040ee90
add esp, 4
test eax, eax
je 0x40664e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x158]
push eax
call esi
lea edi, [ebp + 8]
lea ecx, [esp + 0x50]
push edi
push ecx
call fcn.004101b0
add esp, 8
test eax, eax
mov dword [ebp + 4], eax
je 0x406896
push eax
call fcn.00410280
lea edx, [esp + 0x54]
push edx
mov dword [ebp + 0x10], eax
call fcn.0040f140
mov byte [eax], 0
lea eax, [esp + 0x58]
push eax
call fcn.0040e950
mov ecx, dword [ebp + 0x14]
add esp, 0xc
push eax
add ecx, 0x3a90
push ecx
call esi
mov edx, dword [ebp + 0x10]
mov esi, dword [edi]
push edx
push esi
call fcn.00402140
mov ebx, eax
add esp, 8
test ebx, ebx
mov dword [esp + 0x14], ebx
je 0x406b39
add esi, ebx
mov ecx, 0xd
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov eax, dword [esp + 0x18]
cmp al, 0x6c
jne 0x406b39
mov ecx, eax
shr ecx, 8
cmp cl, 0x73
jne 0x406b39
mov edx, eax
shr edx, 0x10
cmp dl, 0x66
jne 0x406b39
shr eax, 0x18
cmp al, 0x78
jne 0x406b39
mov al, byte [esp + 0x20]
test al, 8
je 0x406743
mov byte [0x42f608], 1
test al, 4
jne 0x406750
call fcn.00401f20
test al, al
je 0x40677a
cmp byte [0x42f608], 0
jne 0x40677a
mov eax, dword [0x42f4ec]
push 0
push 0x401f10
push 0
push 0xa5
push eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [0x42f604], eax
jmp 0x40677f
mov eax, dword [0x42f604]
test eax, eax
je 0x4067e1
cmp byte [0x42f608], 0
je 0x4067b0
push 4
push 1
push 1
push 0
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [0x42f604]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4067d6
push 0
push eax
call fcn.00410150
mov edx, dword [0x42f604]
add esp, 8
push 5
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x42f604]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x42f600], eax
test dword [esp + 0x1c], 0x100000
jne 0x40682f
mov ecx, dword [ebp + 0x10]
mov edx, dword [esp + 0x28]
cmp ecx, edx
je 0x40680e
mov eax, ecx
sub eax, edx
cmp eax, 1
je 0x40680e
mov dword [0x42f140], 6
jmp 0x406b43
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.00402970
add esp, 0x10
test eax, eax
je 0x4067ff
mov edi, dword [esp + 0x24]
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x406851
mov dword [0x42f140], 2
jmp 0x406b43
mov esi, dword [esp + 0x14]
mov edx, dword [ebp + 8]
add esi, 0x36
push edi
add edx, esi
push edx
push ebx
call fcn.00413840
mov eax, dword [esp + 0x3e]
add esp, 0xc
test eax, eax
je 0x4068c1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x1198c], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x1198c]
test eax, eax
jne 0x4068ab
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call fcn.00405c70
mov dword [0x42f140], 2
jmp 0x406b49
mov ecx, dword [esp + 0x32]
mov edx, dword [ebp + 8]
add esi, edi
push ecx
add edx, esi
push edx
push eax
call fcn.00413840
add esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
push eax
call fcn.00405e10
add esp, 8
test eax, eax
push ebx
jne 0x4068ee
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call fcn.00405c70
mov dword [0x42f140], 1
jmp 0x406b49
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [ebp + 0x14]
mov edx, dword [esp + 0x1c]
mov ecx, 0xd
lea esi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x3a88], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [esp + 0x20]
mov dword [eax + 0x3a8c], ecx
mov edx, dword [ebp + 0x14]
mov eax, dword [esp + 0x3a]
movzx ecx, word [esp + 0x3e]
mov dword [edx + 0x12020], eax
mov edx, dword [ebp + 0x14]
movzx eax, word [esp + 0x42]
mov dword [edx + 0x12190], ecx
mov ecx, dword [ebp + 0x14]
movzx edx, word [esp + 0x40]
mov dword [ecx + 0x128d8], eax
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x123bc], edx
mov ecx, dword [ebp + 0x14]
add ecx, 0x7d0
push ecx
push str.szUserDefinedExtractSubPath___s_n
call fcn.00406d20
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x3a88]
shr edx, 3
and edx, 0xffffff01
push edx
lea ecx, [eax + 0x7d0]
mov eax, dword [eax + 0x3ba0]
push ecx
lea edx, [esp + 0x36c]
push edx
push eax
lea ecx, [esp + 0x270]
push ecx
call fcn.0040d910
add esp, 0x1c
test al, al
je 0x4068d9
lea edx, [esp + 0x258]
push edx
call fcn.0040e9f0
mov ecx, dword [ebp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 4
lea eax, [esp + 0x258]
push eax
add ecx, 0x5c8
push ecx
call esi
mov eax, dword [ebp + 0x14]
test byte [eax + 0x3a88], 4
je 0x406a15
add eax, 0x5c8
push eax
call fcn.0040e9f0
mov eax, dword [ebp + 0x14]
add esp, 4
lea edx, [eax + 0x3a90]
push edx
add eax, 0x5c8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp + 0x14]
add eax, 0x5c8
push eax
call fcn.0040e9f0
add esp, 4
mov eax, dword [ebp + 0x14]
lea ecx, [eax + 0x5c8]
push ecx
add eax, 0x6cc
push eax
call fcn.00402510
mov edx, dword [ebp + 0x14]
add esp, 8
xor eax, eax
test byte [edx + 0x3a88], 8
je 0x406a40
mov eax, 1
cmp dword [esp + 0x32], 0
jne 0x406a4b
test eax, eax
je 0x406a87
push 0x800
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x3b94], eax
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + 0x3b94]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x3b98], eax
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x3b9c], 0x800
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x36]
add eax, ecx
push 0xec
mov dword [ebp], eax
call fcn.0041377f
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x46c], 1
test eax, eax
je 0x406abd
mov ecx, eax
call fcn.00412040
jmp 0x406abf
xor eax, eax
mov dword [esp + 0x46c], 0xffffffff
test eax, eax
mov dword [ebp + 0xc], eax
je 0x40688f
lea edx, [esp + 0x154]
push edx
push 0x42f4f4
call esi
mov eax, dword [ebp]
mov dword [0x42f5f8], eax
mov ecx, dword [ebp]
push ecx
mov ecx, dword [ebp + 0xc]
lea edx, [esp + 0x158]
push edx
call fcn.004122a0
test eax, eax
jne 0x406b1d
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call fcn.00405c70
mov dword [0x42f140], 3
jmp 0x406b49
mov eax, dword [ebp + 0x14]
push eax
mov ecx, 0x42f630
call fcn.00404b60
mov dword [0x42f140], 0
mov eax, ebp
jmp 0x406b4e
mov dword [0x42f140], 1
push ebp
call fcn.00405c70
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x464]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x44c]
xor ecx, esp
call fcn.00412c09
add esp, 0x45c
ret