Function at 0x1002155a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [ebp - 0x104], 0x2d5e48d3
mov dword [ebp - 0x100], 0x2d5e48d3
mov dword [ebp - 0xfc], 0x2d5e48d3
mov dword [ebp - 0xf8], 0x2d5e48d3
mov dword [ebp - 0x1c], 0x52061f6
mov dword [ebp - 0x1c], 3
jmp 0x100215a2
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jl 0x100215be
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + eax*4 - 0x104]
mov dword [ebp + ecx*4 - 0x104], eax
jmp 0x1002159b
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x100215d5
push 0x1d30
call dword [sym.imp.USER32.dll_MessageBeep]
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1002187e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xd8], eax
mov dword [ebp - 0xc0], 0
mov dword [ebp - 8], 0
jmp 0x10021604
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x10021617
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x40], 0xffffffff
jmp 0x100215fd
mov dword [ebp - 8], 0
jmp 0x10021627
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jge 0x1002163d
mov eax, dword [ebp - 8]
mov dword [ebp + eax*4 - 0x10c], 0xc4d1454b
jmp 0x10021620
push 4
pop eax
shl eax, 0
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x40]
cmp dword [ebp + eax - 0x40], ecx
jne 0x1002165f
mov dword [ebp - 0xa8], 1
jmp 0x10021666
and dword [ebp - 0xa8], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x40], 0
jne 0x10021689
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x40], 0
jne 0x10021689
and dword [ebp - 0xa0], 0
jmp 0x10021693
mov dword [ebp - 0xa0], 1
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xa0]
mov dword [ebp + eax - 0x10c], ecx
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10c]
push 4
pop ecx
shl ecx, 0
imul eax, dword [ebp + ecx - 0x40]
push 4
pop ecx
shl ecx, 0
cmp eax, dword [ebp + ecx - 0x40]
jne 0x100216d6
mov dword [ebp - 0xbc], 1
jmp 0x100216dd
and dword [ebp - 0xbc], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x40]
cmp eax, dword [ebp - 0xbc]
je 0x100216fb
mov dword [ebp - 0xb4], 1
jmp 0x10021702
and dword [ebp - 0xb4], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xb4]
sub ecx, dword [ebp + eax - 0x40]
jne 0x1002171d
mov dword [ebp - 0x70], 1
jmp 0x10021721
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0xa8]
cmp eax, dword [ebp - 0x70]
je 0x10021738
mov dword [ebp - 0x98], 1
jmp 0x1002173f
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xc0], eax
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x10021764
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [ebp - 0xd8]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x11c], 0xc3414b58
mov dword [ebp - 0x2c], 0xa
jmp 0x1002178e
mov eax, dword [ebp - 0x2c]
dec eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xfffffff0
jge 0x1002186e
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x28], 0
jmp 0x100217af
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 3
jge 0x100217c5
mov eax, dword [ebp - 0x28]
mov dword [ebp + eax*4 - 0x128], 0x47dc4b4e
jmp 0x100217a8
mov byte [ebp - 0xf], 0
movzx eax, byte [ebp - 0xf]
test eax, eax
je 0x100217e0
push 0
push 0x23f2
push 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayLock]
mov dword [ebp - 0x34], 0
jmp 0x100217f0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jg 0x10021869
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x20], 0
jmp 0x1002180d
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 2
jg 0x10021867
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x24], 0
jmp 0x1002182a
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jg 0x1002184f
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x1002184d
push 0
push 0x178e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
jmp 0x10021823
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x128]
mov ecx, dword [ebp - 0x20]
mov dword [ebp + ecx*4 - 0x128], eax
jmp 0x10021806
jmp 0x100217e9
jmp 0x10021787
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x78]
mov dword [ecx], eax
jmp 0x10021cfc
mov dword [ebp - 0x118], 0xffffffff
mov dword [ebp - 0x58], 0xddbc3707
mov dword [ebp - 0x4c], 0xe7f737a9
mov dword [ebp - 0x5c], 0x8213af72
mov dword [ebp - 0xb0], 0x4794
mov dword [ebp - 0x44], 0xf9f7c8b1
mov dword [ebp - 0xf4], 0x9135
mov dword [ebp - 4], 0
jmp 0x100218c8
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jge 0x100218db
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x68], 0x67b8f5f4
jmp 0x100218c1
mov dword [ebp - 4], 0
jmp 0x100218eb
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jge 0x10021901
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x138], 0xfffffffa
jmp 0x100218e4
mov byte [ebp - 0xc], 0
movzx eax, byte [ebp - 0xc]
test eax, eax
je 0x1002191b
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
jne 0x100219f7
mov eax, dword [ebp - 0xb0]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x114], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x68], 0
jne 0x1002194e
cmp dword [ebp - 0x58], 0
cmp dword [ebp - 0x5c], 1
jg 0x10021960
mov dword [ebp - 0xb8], 1
jmp 0x10021967
and dword [ebp - 0xb8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x68]
cmp dword [ebp - 0xb8], eax
jl 0x10021982
mov dword [ebp - 0x80], 1
jmp 0x10021986
and dword [ebp - 0x80], 0
imul eax, dword [ebp - 0x58], 0x67b3
cmp eax, dword [ebp - 0x80]
jne 0x1002199e
mov dword [ebp - 0x88], 1
jmp 0x100219a5
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x5c]
push 4
pop ecx
shl ecx, 0
mov ecx, dword [ebp + ecx - 0x68]
imul ecx, dword [ebp - 0x88]
add ecx, dword [ebp - 0x58]
imul eax, ecx
test eax, eax
je 0x100219d8
cmp dword [ebp - 0xb0], 0
je 0x100219d8
mov dword [ebp - 0x90], 1
jmp 0x100219df
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x68]
cmp dword [ebp - 0x90], eax
jl 0x100219f7
and dword [ebp - 0x60], 0
jmp 0x100219fe
mov dword [ebp - 0x60], 1
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x60]
sub ecx, dword [ebp + eax - 0x68]
jne 0x10021a1c
cmp dword [ebp - 0xf4], 0
jne 0x10021a1c
and dword [ebp - 0x6c], 0
jmp 0x10021a23
mov dword [ebp - 0x6c], 1
mov eax, dword [ebp - 0x4c]
cmp dword [ebp - 0x6c], eax
jl 0x10021a34
mov dword [ebp - 0x74], 1
jmp 0x10021a38
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xd0], eax
mov dword [ebp - 0xf0], 0
mov dword [ebp - 0xec], 0
mov dword [ebp - 0xe8], 0
mov dword [ebp - 0xe4], 0
mov dword [ebp - 0x30], 0
jmp 0x10021a7f
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 1
jge 0x10021a95
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x130], 0xbf506e60
jmp 0x10021a78
push 4
pop eax
imul eax, eax, 0
mov dword [ebp + eax - 0xf0], 0
jmp 0x10021ac3
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf0]
inc eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xf0], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xf0], 0x16
je 0x10021b23
mov dword [ebp - 0x38], 0x94fe5f36
mov byte [ebp - 0x10], 0
movzx eax, byte [ebp - 0x10]
test eax, eax
je 0x10021aec
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [ebp - 0x38], 0
jmp 0x10021afc
mov eax, dword [ebp - 0x38]
dec eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
jl 0x10021b21
mov byte [ebp - 9], 0
movzx eax, byte [ebp - 9]
test eax, eax
je 0x10021b1f
push 0
push 0
push 0x14ef
push 0
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
jmp 0x10021af5
jmp 0x10021aa8
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xcc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xe0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0x12c], 0xffffffff
mov byte [ebp - 0xa], 0
movzx eax, byte [ebp - 0xa]
test eax, eax
je 0x10021b63
call dword [sym.imp.USER32.dll_GetCaretBlinkTime]
mov byte [ebp - 0xb], 0
movzx eax, byte [ebp - 0xb]
test eax, eax
je 0x10021b94
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
push 0x2049
push 0x2290
push 0x613
push 0x25aa
push 0
call dword [sym.imp.USER32.dll_TrackPopupMenu]
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0xf545
jge 0x10021be1
mov dword [ebp - 0x84], 1
jmp 0x10021be8
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jge 0x10021bfd
mov dword [ebp - 0x7c], 1
jmp 0x10021c01
and dword [ebp - 0x7c], 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
cmp dword [ebp - 0x7c], eax
jle 0x10021c14
mov dword [ebp - 0x54], 1
jmp 0x10021c18
and dword [ebp - 0x54], 0
mov eax, dword [ebp - 0x94]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov eax, dword [ebp - 0x84]
imul eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx]
jge 0x10021c40
mov dword [ebp - 0x8c], 1
jmp 0x10021c47
and dword [ebp - 0x8c], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp dword [ebp - 0x8c], eax
jge 0x10021c76
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
jne 0x10021c76
mov eax, dword [ebp - 0x94]
cmp dword [eax], 0
jne 0x10021c76
mov eax, 0xf4a0
test eax, eax
jne 0x10021c76
and dword [ebp - 0x48], 0
jmp 0x10021c7d
mov dword [ebp - 0x48], 1
mov eax, dword [ebp - 0xc4]
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x48]
sub ecx, dword [eax]
imul eax, ecx, 0x6c7f
cmp eax, 8
jle 0x10021ca7
mov dword [ebp - 0x9c], 1
jmp 0x10021cae
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp dword [ebp - 0x9c], eax
jge 0x10021cc7
mov dword [ebp - 0xa4], 1
jmp 0x10021cce
and dword [ebp - 0xa4], 0
mov eax, dword [ebp - 0x50]
mov eax, dword [eax]
cmp dword [ebp - 0xa4], eax
jg 0x10021ce7
mov dword [ebp - 0xac], 1
jmp 0x10021cee
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xac]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret