Function at 0x1004879e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10069cb7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x158
push esi
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10048870
lea eax, [ebp + 0x18]
mov dword [ebp - 0xec], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0xec]
movzx eax, byte [eax]
test eax, eax
je 0x1004881d
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0xdc], eax
mov eax, dword [ebp - 0xdc]
mov byte [eax], 1
jmp 0x1004886b
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x6c]
mov eax, dword [eax]
imul esi, dword [eax], 0xa
mov ecx, dword [ebp - 0xb0]
call fcn.10043718
movsx eax, byte [eax]
lea eax, [esi + eax - 0x30]
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov dword [ecx], eax
jmp 0x10048eb3
lea eax, [ebp + 0x1c]
mov dword [ebp - 0xd8], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0xc0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0x3c], 0xffffffff
mov dword [ebp - 0xd0], 0x224b
cmp dword [ebp - 0xd0], 0xf20
jge 0x100489e7
lea eax, [ebp - 0x48]
push eax
mov ecx, 0x1065acf0
call fcn.10029710
call fcn.10009569
push eax
push 0
push 1
mov ecx, 0x1065acf0
call fcn.10049020
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x48]
dec eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0xb8], 0
je 0x100489e7
lea ecx, [ebp - 0x11c]
call fcn.10029688
and dword [ebp - 4], 0
push 0x1000807d
lea ecx, [ebp - 0x164]
call fcn.10029699
mov byte [ebp - 4], 1
lea edx, [ebp - 0x11c]
mov ecx, 0x1065acf0
call fcn.1002e1ac
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x11c]
call fcn.100296f7
mov dword [ebp - 0x7c], eax
jmp 0x10048942
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x7c]
jge 0x100489a8
push dword [ebp - 0x14]
lea ecx, [ebp - 0x11c]
call fcn.100296e3
movsx eax, byte [eax]
cmp eax, 0x20
je 0x100489a6
push dword [ebp - 0x14]
lea ecx, [ebp - 0x11c]
call fcn.100296e3
mov al, byte [eax]
movzx eax, al
push eax
lea ecx, [ebp - 0x164]
call fcn.100296d2
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x7c]
jge 0x100489a6
push dword [ebp - 0x14]
lea ecx, [ebp - 0x11c]
call fcn.100296e3
movsx eax, byte [eax]
cmp eax, 0x20
je 0x100489a6
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
jmp 0x1004897f
jmp 0x1004893b
push fcn.1002e156
lea edx, [ebp - 0x164]
mov ecx, 0x1065ac38
call fcn.1003eb56
mov ecx, eax
call fcn.10029b29
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x164]
call fcn.100296c8
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x11c]
call fcn.100296c8
jmp 0x100488d7
mov dword [ebp - 0x3c], 0
jmp 0x100489f7
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0x18
jge 0x10048a21
mov byte [ebp - 0x22], 0
movzx eax, byte [ebp - 0x22]
test eax, eax
je 0x10048a1f
push 0
push 0
push 0x80f
push 0x1a6a
push 0
call dword [sym.imp.USER32.dll_InsertMenuW]
jmp 0x100489f0
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x10048a3a
push 0x8e6
push 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0xd8]
movzx eax, byte [eax]
test eax, eax
je 0x10048e90
mov eax, dword [ebp - 0xc0]
mov dword [ebp - 0xd4], eax
mov dword [ebp - 0x10], 0xfffffffb
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0xe8], 0x924b5411
mov dword [ebp - 0x50], 0xfffe
mov dword [ebp - 0x104], 0xb5e49576
mov dword [ebp - 0x100], 0xb5e49576
mov dword [ebp - 0xfc], 0xb5e49576
mov dword [ebp - 0xf8], 0xb5e49576
mov dword [ebp - 0x44], 0xd485
mov dword [ebp - 0x30], 0
jmp 0x10048ab5
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jge 0x10048acb
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0xf4], 0xa117
jmp 0x10048aae
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x18], eax
jne 0x10048ae5
mov dword [ebp - 0xe0], 1
jmp 0x10048aec
and dword [ebp - 0xe0], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x18], 0x5b05
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x10]
cmp eax, 0x40874b28
jge 0x10048b12
mov dword [ebp - 0x5c], 1
jmp 0x10048b16
and dword [ebp - 0x5c], 0
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x10]
cmp eax, 0xab227d37
jbe 0x10048b35
cmp dword [ebp - 0xe8], 0
je 0x10048b35
mov dword [ebp - 0x74], 1
jmp 0x10048b39
and dword [ebp - 0x74], 0
mov eax, dword [ebp - 0x50]
cmp dword [ebp - 0x74], eax
je 0x10048b4a
mov dword [ebp - 0x64], 1
jmp 0x10048b4e
and dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 1
jne 0x10048b60
mov dword [ebp - 0x84], 1
jmp 0x10048b67
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x84]
push 4
pop ecx
shl ecx, 0
mov dword [ebp + ecx - 0x104], eax
mov eax, dword [ebp - 0x44]
cmp dword [ebp - 0x10], eax
jne 0x10048c0c
mov dword [ebp - 0x13c], 0xec58f553
mov dword [ebp - 0x140], 6
push 1
lea ecx, [ebp - 0x12c]
call fcn.10029e7b
mov dword [ebp - 4], 2
mov dword [ebp - 0x34], 0
jmp 0x10048bc1
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 1
jge 0x10048bdd
push dword [ebp - 0x34]
lea ecx, [ebp - 0x12c]
call fcn.10029f5b
mov dword [eax], 0xfffffff6
jmp 0x10048bba
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xf4]
dec eax
push 4
pop ecx
imul ecx, ecx, 0
mov dword [ebp + ecx - 0xf4], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x12c]
call fcn.10029f30
jmp 0x10048d7a
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x54], 0x2039ce85
mov dword [ebp - 0x38], 0
jmp 0x10048c2a
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x10048c40
mov eax, dword [ebp - 0x38]
mov dword [ebp + eax*4 - 0x14c], 0x7df39f3c
jmp 0x10048c23
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x10048c56
push 0
push 0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x130], eax
push 4
pop eax
shl eax, 0
mov dword [ebp + eax - 0x104], 0xfffffffb
mov eax, dword [ebp - 0x10]
sub eax, 5
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0xf4]
sub ecx, eax
imul ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ecx
mov eax, dword [ebp - 0x54]
sub eax, dword [ebp - 0x18]
jne 0x10048cb2
mov eax, 0xfffc
test eax, eax
jne 0x10048cb2
cmp dword [ebp - 0x20], 0
jne 0x10048cb2
and dword [ebp - 0x58], 0
jmp 0x10048cb9
mov dword [ebp - 0x58], 1
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x58], eax
jne 0x10048ccd
mov dword [ebp - 0xcc], 1
jmp 0x10048cd4
and dword [ebp - 0xcc], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x20]
neg eax
cmp eax, 0x3f2a
jge 0x10048cf2
mov dword [ebp - 0x60], 1
jmp 0x10048cf6
and dword [ebp - 0x60], 0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x60], eax
jg 0x10048d07
mov dword [ebp - 0x70], 1
jmp 0x10048d0b
and dword [ebp - 0x70], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x68], eax
push 4
pop eax
shl eax, 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp + eax - 0x14c], ecx
mov eax, dword [ebp - 0x68]
neg eax
cmp eax, dword [ebp - 0x70]
jg 0x10048d33
mov dword [ebp - 0x78], 1
jmp 0x10048d37
and dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0xffffffff
jge 0x10048d4c
cmp dword [ebp - 0x44], 0
je 0x10048d4c
mov dword [ebp - 0x80], 1
jmp 0x10048d50
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x80], eax
jge 0x10048d67
cmp dword [ebp - 0x44], 0
jne 0x10048d67
and dword [ebp - 0x88], 0
jmp 0x10048d71
mov dword [ebp - 0x88], 1
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x10048d93
push 0x1905
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x90], 0x2516
cmp dword [ebp - 0x90], 0xe1e
jge 0x10048e72
lea eax, [ebp - 0x4c]
push eax
push 0x10008110
call fcn.1004f9f0
pop ecx
pop ecx
and dword [ebp - 0x40], 0
jmp 0x10048de2
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x4c]
jge 0x10048e03
mov eax, dword [ebp - 0x40]
lea eax, [eax*4 + 0x1200d620]
push eax
push 0x10008110
call fcn.1004f9f0
pop ecx
pop ecx
jmp 0x10048ddb
and dword [ebp - 0x28], 0
jmp 0x10048e10
mov eax, dword [ebp - 0x28]
inc eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x4c]
jge 0x10048e2f
mov eax, dword [ebp - 0x28]
inc eax
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx*4 + 0x1200d620]
mov dword [ecx*4 + 0x1200d67c], eax
jmp 0x10048e09
and dword [ebp - 0x2c], 0
jmp 0x10048e3c
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x4c]
jge 0x10048e6a
cmp dword [ebp - 0x2c], 0
je 0x10048e52
push 0x20
call fcn.100506e5
pop ecx
mov eax, dword [ebp - 0x2c]
push dword [eax*4 + 0x1200d680]
push 0x10008110
call fcn.1004fd81
pop ecx
pop ecx
jmp 0x10048e35
push 0xa
call fcn.100506e5
pop ecx
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 0xa4]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x10048eb3
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0xb4], eax
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov eax, dword [eax]
and dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret