Function at 0x10022956
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10080936
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10022ca2
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x24], 6
mov dword [ebp - 0x9c], 9
mov dword [ebp - 0x174], 0xc5adf851
mov dword [ebp - 0x40], 0
jmp 0x100229be
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 2
jge 0x100229d1
mov eax, dword [ebp - 0x40]
mov dword [ebp + eax*4 - 0x2c], 2
jmp 0x100229b7
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x24], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
add eax, dword [ebp - 0x24]
je 0x10022b9d
mov dword [ebp - 0x88], 0xb1c0
mov dword [ebp - 0x158], 0xffffffff
mov dword [ebp - 0x154], 0xffffffff
mov dword [ebp - 0x150], 0xffffffff
mov dword [ebp - 0x14c], 0xffffffff
mov dword [ebp - 0x128], 0xffffffff
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp dword [ebp - 0x88], eax
jl 0x10022a4b
mov dword [ebp - 0xf4], 1
jmp 0x10022a52
and dword [ebp - 0xf4], 0
cmp dword [ebp - 0xf4], 0x39cb61d2
jne 0x10022a6a
mov dword [ebp - 0xf8], 1
jmp 0x10022a71
and dword [ebp - 0xf8], 0
cmp dword [ebp - 0xf8], 1
jg 0x10022a86
mov dword [ebp - 0xe8], 1
jmp 0x10022a8d
and dword [ebp - 0xe8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x178], eax
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x2c], 1
jne 0x10022ab3
mov dword [ebp - 0x5c], 1
jmp 0x10022ab7
and dword [ebp - 0x5c], 0
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x158], ecx
cmp dword [ebp - 0x5c], 1
jl 0x10022ad8
mov dword [ebp - 0x94], 1
jmp 0x10022adf
and dword [ebp - 0x94], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp dword [ebp - 0x94], eax
jge 0x10022afd
mov dword [ebp - 0xd8], 1
jmp 0x10022b04
and dword [ebp - 0xd8], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp dword [ebp - 0xd8], eax
jl 0x10022b1f
mov dword [ebp - 0x80], 1
jmp 0x10022b23
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x80]
sub eax, 0xfff6
cmp eax, 0x7392
jg 0x10022b3e
mov dword [ebp - 0xe0], 1
jmp 0x10022b45
and dword [ebp - 0xe0], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xe0]
sub ecx, dword [ebp + eax - 0x2c]
jne 0x10022b70
push 4
pop eax
imul eax, eax, 3
cmp dword [ebp + eax - 0x158], 0
jne 0x10022b70
and dword [ebp - 0x108], 0
jmp 0x10022b7a
mov dword [ebp - 0x108], 1
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x24]
imul eax, dword [ebp - 0xe8]
add eax, 0x4841d2c3
mov dword [ebp - 0x128], eax
jmp 0x10022bb6
mov byte [ebp - 0x1b], 0
movzx eax, byte [ebp - 0x1b]
test eax, eax
je 0x10022bb6
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
mov dword [ebp - 0x184], eax
cmp dword [ebp - 0x24], 0
jle 0x10022bd8
mov dword [ebp - 0xf0], 1
jmp 0x10022bdf
and dword [ebp - 0xf0], 0
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xf0], eax
je 0x10022bf6
mov dword [ebp - 0x90], 1
jmp 0x10022bfd
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp eax, dword [ebp - 0x90]
jg 0x10022c1b
mov dword [ebp - 0xec], 1
jmp 0x10022c22
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
sub eax, 0x75e3
mov dword [ebp - 0x9c], eax
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x2c]
cmp eax, dword [ebp - 0x9c]
jge 0x10022c57
mov dword [ebp - 0xcc], 1
jmp 0x10022c5e
and dword [ebp - 0xcc], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xcc]
mov dword [ebp + eax - 0x2c], ecx
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x144]
mov dword [ebp - 0x120], eax
push 0
mov ecx, dword [ebp - 0x120]
call fcn.10014dc6
mov ecx, dword [ebp - 0x114]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x1002338a
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x148], eax
mov dword [ebp - 0xbc], 1
mov dword [ebp - 0xd4], 0xffffffff
mov dword [ebp - 0xa4], 7
mov dword [ebp - 0x138], 0
push 4
lea ecx, [ebp - 0x164]
call fcn.10014d59
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
jmp 0x10022cf4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10022d0a
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x134], 0xfffffffd
jmp 0x10022ced
mov dword [ebp - 0x18], 0
jmp 0x10022d1a
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 4
jge 0x10022d36
push dword [ebp - 0x18]
lea ecx, [ebp - 0x164]
call fcn.10014dc6
mov dword [eax], 0x25062d7b
jmp 0x10022d13
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x134]
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xaa0a5dec
je 0x10022d61
mov dword [ebp - 0xe4], 1
jmp 0x10022d68
and dword [ebp - 0xe4], 0
imul eax, dword [ebp - 0xe4], 0x3f7e
cmp eax, 0xffffffff
jge 0x10022d83
mov dword [ebp - 0xac], 1
jmp 0x10022d8a
and dword [ebp - 0xac], 0
mov eax, dword [ebp - 0x138]
cmp dword [ebp - 0xac], eax
jge 0x10022da4
mov dword [ebp - 0xb4], 1
jmp 0x10022dab
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp - 0xd4]
cmp eax, dword [ebp - 0xb4]
jge 0x10022dce
mov dword [ebp - 0x74], 1
jmp 0x10022dd2
and dword [ebp - 0x74], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x74]
sub ecx, 0xa
cmp dword [ebp + eax - 0x134], ecx
jl 0x10022df0
mov dword [ebp - 0x68], 1
jmp 0x10022df4
and dword [ebp - 0x68], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x68]
mov dword [ebp + eax - 0x134], ecx
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0x68], eax
je 0x10022e1b
mov dword [ebp - 0xdc], 1
jmp 0x10022e22
and dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 4
jl 0x10022e37
mov dword [ebp - 0xc4], 1
jmp 0x10022e3e
and dword [ebp - 0xc4], 0
push 0
lea ecx, [ebp - 0x164]
call fcn.10014dc6
mov ecx, dword [ebp - 0xc4]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x164]
call fcn.10014dc1
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x124], eax
mov dword [ebp - 0x3c], 0xfffffffa
mov byte [ebp - 0x1d], 0
movzx eax, byte [ebp - 0x1d]
test eax, eax
je 0x10022e88
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x3c], 0
jmp 0x10022e98
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 8
je 0x10022f4f
push 1
lea ecx, [ebp - 0x170]
call fcn.10014d59
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x34], 0
jmp 0x10022ed7
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x10022ef0
push dword [ebp - 0x34]
lea ecx, [ebp - 0x170]
call fcn.10014dc6
and dword [eax], 0
jmp 0x10022ed0
mov dword [ebp - 0x44], 0
jmp 0x10022f00
mov eax, dword [ebp - 0x44]
inc eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
jg 0x10022f21
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x10022f1f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_IsZoomed]
jmp 0x10022ef9
cmp dword [ebp - 0x11c], 0
je 0x10022f3b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.10014dc1
jmp 0x10022f4f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x170]
call fcn.10014dc1
jmp 0x10022e91
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x118], eax
push 2
lea ecx, [ebp - 0x50]
call fcn.10014d59
mov dword [ebp - 4], 2
mov dword [ebp - 0x10], 0x79763266
mov dword [ebp - 0x38], 0xcc92ea21
push 1
lea ecx, [ebp - 0x104]
call fcn.10014d59
mov byte [ebp - 4], 3
mov dword [ebp - 0x58], 0x1b713623
mov dword [ebp - 0x140], 0x377963f6
mov dword [ebp - 0x60], 0xeb4e
mov dword [ebp - 0x14], 0
jmp 0x10022fbc
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x10022fd5
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
mov dword [eax], 0xfffffffd
jmp 0x10022fb5
mov dword [ebp - 0x14], 0
jmp 0x10022fe5
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x10023001
push dword [ebp - 0x14]
lea ecx, [ebp - 0x104]
call fcn.10014dc6
mov dword [eax], 0x4e1c2e93
jmp 0x10022fde
mov dword [ebp - 0x10], 1
jmp 0x10023011
mov eax, dword [ebp - 0x10]
dec eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jl 0x10023339
mov dword [ebp - 0x6c], 0x800ff68e
mov dword [ebp - 0x54], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
cmp dword [eax], 0
jne 0x10023044
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
cmp dword [ebp - 0x10], 0
jne 0x10023062
push 1
lea ecx, [ebp - 0x50]
call fcn.10014dc6
cmp dword [eax], 0
jne 0x10023062
and dword [ebp - 0x8c], 0
jmp 0x1002306c
mov dword [ebp - 0x8c], 1
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
mov ecx, dword [ebp - 0x8c]
cmp ecx, dword [eax]
jl 0x1002308d
mov dword [ebp - 0x98], 1
jmp 0x10023094
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x38], eax
mov esi, dword [ebp - 0x38]
push 0
lea ecx, [ebp - 0x50]
call fcn.10014dc6
imul esi, dword [eax]
add esi, 0xb96c
push 0
lea ecx, [ebp - 0x50]
call fcn.10014dc6
cmp dword [eax], esi
jge 0x100230ca
mov dword [ebp - 0x70], 1
jmp 0x100230ce
and dword [ebp - 0x70], 0
push 0
lea ecx, [ebp - 0x104]
call fcn.10014dc6
mov ecx, dword [ebp - 0x70]
mov dword [eax], ecx
cmp dword [ebp - 0x70], 0
je 0x10023104
push 0
lea ecx, [ebp - 0x104]
call fcn.10014dc6
cmp dword [eax], 0
je 0x10023104
mov dword [ebp - 0xa0], 1
jmp 0x1002310b
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0x1dab
jg 0x10023123
mov dword [ebp - 0xa8], 1
jmp 0x1002312a
and dword [ebp - 0xa8], 0
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x6c], 2
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x180], eax
push 0
lea ecx, [ebp - 0x104]
call fcn.10014dc6
cmp dword [ebp - 0x140], 0xffffffff
jne 0x10023165
mov dword [ebp - 0x12c], 1
jmp 0x1002316c
and dword [ebp - 0x12c], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
mov esi, eax
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
mov ecx, dword [esi]
cmp ecx, dword [eax]
jl 0x10023196
mov dword [ebp - 0xb0], 1
jmp 0x1002319d
and dword [ebp - 0xb0], 0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
mov ecx, dword [ebp - 0xb0]
add ecx, dword [eax]
cmp ecx, 0xf314d41b
jne 0x100231c4
mov dword [ebp - 0xb8], 1
jmp 0x100231cb
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0xb8]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
add eax, dword [ebp - 0x60]
cmp eax, dword [ebp - 0x60]
jge 0x100231eb
mov dword [ebp - 0xc0], 1
jmp 0x100231f2
and dword [ebp - 0xc0], 0
cmp dword [ebp - 0xc0], 0xfffffff6
jne 0x10023207
mov dword [ebp - 0xc8], 1
jmp 0x1002320e
and dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0x64f9
jne 0x10023321
mov dword [ebp - 0x64], 0xfffffffe
cmp dword [ebp - 0x54], 0
jne 0x1002323a
cmp dword [ebp - 0x6c], 0
jne 0x1002323a
and dword [ebp - 0xd0], 0
jmp 0x10023244
mov dword [ebp - 0xd0], 1
mov eax, dword [ebp - 0x64]
imul eax, dword [ebp - 0xd0]
test eax, eax
je 0x10023261
cmp dword [ebp - 0x58], 0
je 0x10023261
mov dword [ebp - 0x78], 1
jmp 0x10023265
and dword [ebp - 0x78], 0
push 1
lea ecx, [ebp - 0x50]
call fcn.10014dc6
mov esi, eax
push 0
lea ecx, [ebp - 0x104]
call fcn.10014dc6
mov eax, dword [eax]
add eax, dword [ebp - 0x78]
cmp dword [esi], eax
jle 0x10023290
mov dword [ebp - 0x7c], 1
jmp 0x10023294
and dword [ebp - 0x7c], 0
mov esi, dword [ebp - 0x64]
imul esi, dword [ebp - 0x7c]
push dword [ebp - 0x10]
lea ecx, [ebp - 0x50]
call fcn.10014dc6
cmp esi, dword [eax]
jg 0x100232bc
cmp dword [ebp - 0x64], 0
je 0x100232bc
mov dword [ebp - 0x84], 1
jmp 0x100232c3
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x100232e9
mov dword [ebp - 0x10c], 0xffffffff
cmp dword [ebp - 0x10c], 0
je 0x100232e7
jmp 0x10023339
jmp 0x10023314
mov byte [ebp - 0x1c], 0
movzx eax, byte [ebp - 0x1c]
test eax, eax
je 0x10023302
push 0x680
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x10023314
call dword [sym.imp.USER32.dll_GetMessageTime]
cmp dword [ebp - 0x58], 0
je 0x1002331f
jmp 0x1002300a
jmp 0x10023334
mov dword [ebp - 0x110], 0xffffffff
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x110], eax
jmp 0x1002300a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x104]
call fcn.10014dc1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.10014dc1
mov eax, dword [ebp - 0x30]
mov dword [eax], 0
jmp 0x1002336a
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax], 4
jge 0x1002338a
mov eax, dword [ebp - 0x30]
push dword [eax]
mov ecx, dword [ebp - 0x118]
call fcn.10014dc6
mov dword [eax], 0xdc02
jmp 0x1002335f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret