Function at 0x10046ea2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10068c3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
push 1
lea ecx, [ebp - 0x6c]
call fcn.1002b976
and dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x10046ee1
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
jge 0x10046efa
push dword [ebp - 0x14]
lea ecx, [ebp - 0x6c]
call fcn.1002ba5b
mov dword [eax], 0xfffffffd
jmp 0x10046eda
mov dword [ebp - 0x14], 0
jmp 0x10046f0a
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10046f1d
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x54], 1
jmp 0x10046f03
push 4
pop eax
shl eax, 1
mov dword [ebp + eax - 0x54], 0
jmp 0x10046f3f
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x54]
inc eax
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x54], eax
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x54], 1
jge 0x10046f64
push 4
pop eax
shl eax, 1
push dword [ebp + eax - 0x54]
lea ecx, [ebp - 0x6c]
call fcn.1002ba5b
mov dword [eax], 6
jmp 0x10046f2c
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.1002ba4d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x40], eax
push 1
lea ecx, [ebp - 0x60]
call fcn.1002b976
mov dword [ebp - 4], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
jmp 0x10046f9e
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 2
jge 0x10046fb1
mov eax, dword [ebp - 0x18]
mov dword [ebp + eax*4 - 0x48], 0x7862
jmp 0x10046f97
mov dword [ebp - 0x18], 0
jmp 0x10046fc1
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jge 0x10046fd7
push dword [ebp - 0x18]
lea ecx, [ebp - 0x60]
call fcn.1002ba5b
and dword [eax], 0
jmp 0x10046fba
push 0
lea ecx, [ebp - 0x60]
call fcn.1002ba5b
mov dword [eax], 1
jmp 0x10047001
push 0
lea ecx, [ebp - 0x60]
call fcn.1002ba5b
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
push 0
lea ecx, [ebp - 0x60]
call fcn.1002ba5b
cmp dword [eax], 0
jl 0x100470cd
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x34], 0x1c42
cmp dword [ebp - 0x34], 0x5c3
jge 0x1004707e
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x10659d70
call fcn.1002b123
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
inc eax
imul eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x1c]
inc ecx
inc ecx
imul eax, ecx
imul ecx, dword [ebp - 0x38], 6
cmp eax, ecx
jg 0x1004705e
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x1004703d
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
push fcn.1003046c
push dword [ebp - 0x1c]
mov ecx, 0x10659cb8
call fcn.1002b62d
mov ecx, eax
call fcn.1002b50f
mov dword [ebp - 0x20], 1
jmp 0x1004708e
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jl 0x100470bd
mov dword [ebp - 0x3c], 0x1151c3c3
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x100470b4
push 0x130
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [ebp - 0x3c], 0xfffffffb
jmp 0x10047087
cmp dword [ebp - 0x20], 0
je 0x100470c8
jmp 0x10046fe9
jmp 0x10046fe9
mov dword [ebp - 0x2c], 0
jmp 0x100470dd
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jg 0x10047110
mov dword [ebp - 0x24], 0xfffffff7
mov dword [ebp - 0x24], 1
jmp 0x100470fa
mov eax, dword [ebp - 0x24]
dec eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jl 0x1004710e
mov eax, dword [ebp - 0x24]
cmp dword [ebp + eax*4 - 0x48], 0
je 0x1004710c
jmp 0x1004710e
jmp 0x100470f3
jmp 0x100470d6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.1002ba4d
mov eax, dword [ebp - 0x28]
mov dword [eax], 0
jmp 0x10047132
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
cmp dword [eax], 1
jge 0x1004714f
mov eax, dword [ebp - 0x28]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.1002ba5b
mov dword [eax], 0xfffffffd
jmp 0x10047127
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret