Function at 0x100184ae
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007db5d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f4
push esi
mov dword [ebp - 0x5c], 0x942a
mov dword [ebp - 0x60], 0xffffffff
mov dword [ebp - 0x1c], 0xfffffffc
mov dword [ebp - 0xfc], 0
push 3
lea ecx, [ebp - 0x18c]
call fcn.100166d2
and dword [ebp - 4], 0
mov dword [ebp - 0x154], 0x3589fe57
mov dword [ebp - 0x10], 0
jmp 0x10018517
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 3
jge 0x10018533
push dword [ebp - 0x10]
lea ecx, [ebp - 0x18c]
call fcn.1001675e
mov dword [eax], 0x1af7f3e7
jmp 0x10018510
mov dword [ebp - 0x10], 0
jmp 0x10018543
mov eax, dword [ebp - 0x10]
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jge 0x10018559
mov eax, dword [ebp - 0x10]
mov dword [ebp + eax*4 - 0x110], 0x1aa08ecb
jmp 0x1001853c
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jne 0x10018574
cmp dword [ebp - 0x60], 0
jne 0x10018574
and dword [ebp - 0x9c], 0
jmp 0x1001857e
mov dword [ebp - 0x9c], 1
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x9c], eax
jne 0x10018595
mov dword [ebp - 0xe0], 1
jmp 0x1001859c
and dword [ebp - 0xe0], 0
mov dword [ebp - 0x1c], 6
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x1c], eax
jne 0x100185b7
mov dword [ebp - 0x88], 1
jmp 0x100185be
and dword [ebp - 0x88], 0
mov eax, dword [ebp - 0x88]
mov dword [ebp - 0xfc], eax
mov esi, dword [ebp - 0xfc]
push 0
lea ecx, [ebp - 0x18c]
call fcn.1001675e
cmp esi, dword [eax]
jg 0x100185ed
mov dword [ebp - 0x84], 1
jmp 0x100185f4
and dword [ebp - 0x84], 0
mov eax, dword [ebp - 0x154]
cmp dword [ebp - 0x84], eax
jg 0x1001860e
mov dword [ebp - 0x158], 1
jmp 0x10018615
and dword [ebp - 0x158], 0
mov eax, dword [ebp - 0xe0]
sub eax, 0xc9ca
je 0x10018637
mov eax, 0x91b4956e
test eax, eax
je 0x10018637
mov dword [ebp - 0x90], 1
jmp 0x1001863e
and dword [ebp - 0x90], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0x90]
mov dword [ebp + eax - 0x110], ecx
mov dword [ebp - 0x1c], 0xfffffff5
jmp 0x10018661
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 7
jle 0x1001867e
mov dword [ebp - 0x120], 0
cmp dword [ebp - 0x120], 0
je 0x1001867c
jmp 0x1001867e
jmp 0x1001865a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18c]
call fcn.10016759
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10018daa
push 3
lea ecx, [ebp - 0x1a4]
call fcn.100166d2
mov dword [ebp - 4], 1
mov dword [ebp - 0x24], 0xfffffffc
mov dword [ebp - 0x38], 0
jmp 0x100186c4
mov eax, dword [ebp - 0x38]
inc eax
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 3
jge 0x100186e0
push dword [ebp - 0x38]
lea ecx, [ebp - 0x1a4]
call fcn.1001675e
mov dword [eax], 0xfffc
jmp 0x100186bd
mov dword [ebp - 0x24], 0
jmp 0x100186f0
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 2
jg 0x1001877d
mov dword [ebp - 0x2c], 0x69f7fd1e
push dword [ebp - 0x24]
lea ecx, [ebp - 0x1a4]
call fcn.1001675e
cmp dword [eax], 0
je 0x10018716
jmp 0x1001877d
mov dword [ebp - 0x2c], 0
jmp 0x10018726
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 2
jg 0x10018778
mov dword [ebp - 0x40], 8
mov byte [ebp - 0x16], 0
movzx eax, byte [ebp - 0x16]
test eax, eax
je 0x10018745
call dword [sym.imp.KERNEL32.dll_SwitchToThread]
mov dword [ebp - 0x40], 2
jmp 0x10018755
mov eax, dword [ebp - 0x40]
dec eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jl 0x10018776
mov byte [ebp - 0x15], 0
movzx eax, byte [ebp - 0x15]
test eax, eax
je 0x10018774
push 0
push 0x192e
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
jmp 0x1001874e
jmp 0x1001871f
jmp 0x100186e9
mov byte [ebp - 0x18], 0
movzx eax, byte [ebp - 0x18]
test eax, eax
je 0x10018793
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommState]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1a4]
call fcn.10016759
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
and dword [ebp - 0x180], 0
and dword [ebp - 0x17c], 0
and dword [ebp - 0x178], 0
and dword [ebp - 0x174], 0
lea ecx, [ebp - 0x61]
call fcn.10008be3
push eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x180]
push eax
lea ecx, [ebp - 0x1f8]
call fcn.1001676d
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x1f0]
call fcn.10016733
mov dword [ebp - 4], 2
mov dword [ebp - 0x48], 0xfffffff6
mov dword [ebp - 0x1b8], 0x9dfcf09c
mov dword [ebp - 0x1e0], 0x87f6fb80
push 4
lea ecx, [ebp - 0x198]
call fcn.100166d2
mov byte [ebp - 4], 3
mov dword [ebp - 0x54], 0
jmp 0x10018845
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], 4
jge 0x10018861
push dword [ebp - 0x54]
lea ecx, [ebp - 0x198]
call fcn.1001675e
mov dword [eax], 0xfffffff8
jmp 0x1001883e
mov dword [ebp - 0x48], 0
jmp 0x10018871
mov eax, dword [ebp - 0x48]
inc eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 3
jg 0x1001892d
mov dword [ebp - 0x30], 8
push 3
lea ecx, [ebp - 0x1b4]
call fcn.100166d2
mov byte [ebp - 4], 4
mov dword [ebp - 0x1c8], 1
mov dword [ebp - 0x50], 0
jmp 0x100188ad
mov eax, dword [ebp - 0x50]
inc eax
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 3
jge 0x100188c9
push dword [ebp - 0x50]
lea ecx, [ebp - 0x1b4]
call fcn.1001675e
mov dword [eax], 0xef9d7865
jmp 0x100188a6
mov dword [ebp - 0x30], 0
jmp 0x100188d9
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 3
jg 0x10018919
mov dword [ebp - 0x1cc], 1
mov dword [ebp - 0x1d0], 0xfffffff7
push 2
lea ecx, [ebp - 0x198]
call fcn.1001675e
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov eax, dword [eax]
dec eax
mov ecx, dword [ebp - 0xc8]
mov dword [ecx], eax
jmp 0x100188d2
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1b4]
call fcn.10016759
jmp 0x1001886a
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x198]
call fcn.10016759
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1f0]
call fcn.10016759
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x20], 0x477862fd
mov dword [ebp - 0x10c], 0x38299fa9
mov dword [ebp - 0x108], 0x38299fa9
mov dword [ebp - 0x104], 0x38299fa9
mov dword [ebp - 0x100], 0x38299fa9
mov dword [ebp - 0xa0], 0xffffffff
mov dword [ebp - 0xa8], 0xd7f285f4
or dword [ebp - 0x16c], 0xffffffff
or dword [ebp - 0x168], 0xffffffff
or dword [ebp - 0x164], 0xffffffff
or dword [ebp - 0x160], 0xffffffff
lea ecx, [ebp - 0x55]
call fcn.10008be3
push eax
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x200]
call fcn.1001676d
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x1c4]
call fcn.10016733
mov dword [ebp - 4], 5
mov dword [ebp - 0x124], 1
mov dword [ebp - 0x150], 0x2e882408
mov dword [ebp - 0x34], 0
jmp 0x10018a13
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 2
jge 0x10018a29
mov eax, dword [ebp - 0x34]
mov dword [ebp + eax*4 - 0x12c], 5
jmp 0x10018a0c
mov dword [ebp - 0x20], 0x17
jmp 0x10018a39
mov eax, dword [ebp - 0x20]
dec eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xfffffffc
jl 0x10018d75
mov dword [ebp - 0x3c], 0
jmp 0x10018a53
mov eax, dword [ebp - 0x3c]
inc eax
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 4
jge 0x10018a66
mov eax, dword [ebp - 0x3c]
mov dword [ebp + eax*4 - 0x78], 0xc62e0897
jmp 0x10018a4c
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x78], 0
je 0x10018d41
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x78]
mov dword [ebp - 0x1a8], eax
push 4
pop eax
imul eax, eax, 0
imul eax, dword [ebp + eax - 0x10c], 0xe26b
push 4
pop ecx
imul ecx, ecx, 3
cmp eax, dword [ebp + ecx - 0x78]
jl 0x10018aaf
mov dword [ebp - 0x98], 1
jmp 0x10018ab6
and dword [ebp - 0x98], 0
mov eax, dword [ebp - 0x98]
add eax, 9
cmp dword [ebp - 0x20], eax
jl 0x10018ad0
mov dword [ebp - 0xf0], 1
jmp 0x10018ad7
and dword [ebp - 0xf0], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x78]
add eax, dword [ebp - 0xf0]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0xfffb
jne 0x10018b05
mov dword [ebp - 0xd0], 1
jmp 0x10018b0c
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0xa8], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x78]
cmp dword [ebp - 0xa8], eax
je 0x10018b35
mov dword [ebp - 0xe8], 1
jmp 0x10018b3c
and dword [ebp - 0xe8], 0
mov eax, dword [ebp - 0xe8]
neg eax
push 4
pop ecx
shl ecx, 1
add eax, dword [ebp + ecx - 0x78]
cmp dword [ebp - 0x20], eax
je 0x10018b68
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x78], 0
jne 0x10018b68
and dword [ebp - 0xb0], 0
jmp 0x10018b72
mov dword [ebp - 0xb0], 1
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x78]
cmp eax, dword [ebp - 0xb0]
jle 0x10018b90
mov dword [ebp - 0xd8], 1
jmp 0x10018b97
and dword [ebp - 0xd8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10c]
imul eax, dword [ebp - 0xd8]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0x10c]
jne 0x10018bc2
mov dword [ebp - 0x68], 1
jmp 0x10018bc6
and dword [ebp - 0x68], 0
push 1
lea ecx, [ebp - 0x1c4]
call fcn.1001675e
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
cmp dword [ebp - 0x68], 0
je 0x10018bef
xor eax, eax
inc eax
je 0x10018bef
mov dword [ebp - 0xb8], 1
jmp 0x10018bf6
and dword [ebp - 0xb8], 0
cmp dword [ebp - 0xb8], 0
jne 0x10018c0b
mov dword [ebp - 0xf8], 1
jmp 0x10018c12
and dword [ebp - 0xf8], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x10c]
cmp dword [ebp - 0xf8], eax
je 0x10018c33
mov dword [ebp - 0xc0], 1
jmp 0x10018c3a
and dword [ebp - 0xc0], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x12c]
imul eax, dword [ebp - 0xc0]
push 4
pop ecx
shl ecx, 1
cmp eax, dword [ebp + ecx - 0x10c]
jge 0x10018c6f
mov eax, 0x4b505d01
test eax, eax
je 0x10018c6f
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x78], 0
push 4
pop eax
imul eax, eax, 3
push 4
pop ecx
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x10c]
cmp dword [ebp + eax - 0x78], ecx
jl 0x10018c91
mov dword [ebp - 0x80], 1
jmp 0x10018c95
and dword [ebp - 0x80], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x12c]
cmp dword [ebp - 0x80], eax
jne 0x10018cb3
mov dword [ebp - 0x8c], 1
jmp 0x10018cba
and dword [ebp - 0x8c], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x12c]
cmp dword [ebp - 0x8c], eax
jl 0x10018cdb
mov dword [ebp - 0x94], 1
jmp 0x10018ce2
and dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0x7067d5b4
jg 0x10018cfa
mov dword [ebp - 0x14c], 1
jmp 0x10018d01
and dword [ebp - 0x14c], 0
cmp dword [ebp - 0x124], 0
jne 0x10018d20
mov eax, 0x50eb
test eax, eax
jne 0x10018d20
push 5
pop eax
test eax, eax
jne 0x10018d20
and dword [ebp - 0x7c], 0
jmp 0x10018d27
mov dword [ebp - 0x7c], 1
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x78]
add eax, dword [ebp - 0x7c]
je 0x10018d41
mov dword [ebp - 0xa4], 1
jmp 0x10018d48
and dword [ebp - 0xa4], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0xa4]
mov dword [ebp + eax - 0x78], ecx
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x78]
sub eax, dword [ebp - 0x150]
push 4
pop ecx
shl ecx, 1
mov dword [ebp + ecx - 0x78], eax
jmp 0x10018a32
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c4]
call fcn.10016759
mov eax, dword [ebp - 0x130]
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x140]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx + 8], eax
jmp 0x1001901b
mov dword [ebp - 0x44], 0xdf75dcec
mov dword [ebp - 0x1dc], 0x4a2a4f40
mov dword [ebp - 0x44], 0x1b
jmp 0x10018dcb
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0x11
je 0x10018df4
mov byte [ebp - 0x17], 0
movzx eax, byte [ebp - 0x17]
test eax, eax
je 0x10018df2
push 0
push 0
push 0x1899
push 0
push 1
push 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
jmp 0x10018dc4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xe4], 0xd8987f2f
mov dword [ebp - 0xac], 0xfa20bd03
mov dword [ebp - 0xd4], 0x5e4b7834
mov dword [ebp - 0x114], 0xfffffff9
mov dword [ebp - 0x4c], 4
mov dword [ebp - 0x14], 0
jmp 0x10018e43
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
jge 0x10018e59
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x1d8], 0xb2ab76d6
jmp 0x10018e3c
mov dword [ebp - 0x14], 0
jmp 0x10018e69
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jge 0x10018e7f
mov eax, dword [ebp - 0x14]
mov dword [ebp + eax*4 - 0x13c], 0xffffffff
jmp 0x10018e62
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x4c]
inc ecx
mov dword [ebp - 0x4c], ecx
test eax, eax
je 0x10018fb7
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xac], eax
cmp dword [ebp - 0xac], 0
jne 0x10018f6e
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x13c]
cmp dword [ebp - 0x4c], eax
jg 0x10018ec5
mov dword [ebp - 0xb4], 1
jmp 0x10018ecc
and dword [ebp - 0xb4], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, 0x59ff446c
sub ecx, dword [ebp + eax - 0x1d8]
cmp ecx, dword [ebp - 0xb4]
jge 0x10018ef2
mov dword [ebp - 0x148], 1
jmp 0x10018ef9
and dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x1e4], eax
xor eax, eax
inc eax
je 0x10018f19
cmp dword [ebp - 0x28], 0
je 0x10018f19
mov dword [ebp - 0xbc], 1
jmp 0x10018f20
and dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0
jne 0x10018f35
mov dword [ebp - 0xc4], 1
jmp 0x10018f3c
and dword [ebp - 0xc4], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x13c]
cmp dword [ebp - 0xc4], eax
jl 0x10018f55
cmp dword [ebp - 0x28], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x13c], 0
jne 0x10018f6e
and dword [ebp - 0xcc], 0
jmp 0x10018f78
mov dword [ebp - 0xcc], 1
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0xd4], eax
cmp dword [ebp - 0xd4], 0
je 0x10018f9b
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x13c], 0
push 4
pop eax
shl eax, 0
cmp dword [ebp + eax - 0x13c], 0
je 0x10018fb7
mov dword [ebp - 0xdc], 1
jmp 0x10018fbe
and dword [ebp - 0xdc], 0
mov eax, dword [ebp - 0xdc]
mov dword [ebp - 0xe4], eax
cmp dword [ebp - 0xe4], 1
jne 0x10018fe8
mov eax, 0x758185f1
test eax, eax
je 0x10018fe8
mov dword [ebp - 0xec], 1
jmp 0x10018fef
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
sub eax, dword [ebp - 0x114]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0xf4], eax
mov eax, dword [ebp - 0xf4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0xf4]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret