Function at 0x1002ae11
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008788d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18c
push esi
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1002ae45
push 0
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1002b814
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x128], 1
push 4
lea ecx, [ebp - 0x58]
call fcn.1001b841
and dword [ebp - 4], 0
mov dword [ebp - 0xf0], 2
mov dword [ebp - 0xfc], 1
push 0x41df
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0x21ec
push 0x3aac
call fcn.1002bac4
add esp, 0x18
mov dword [ebp - 0x30], 0
jmp 0x1002aec1
mov eax, dword [ebp - 0x30]
inc eax
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 2
jge 0x1002aed7
mov eax, dword [ebp - 0x30]
mov dword [ebp + eax*4 - 0x16c], 0x5f84255e
jmp 0x1002aeba
mov dword [ebp - 0x128], 0
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
mov esi, dword [ebp - 0xf0]
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
cmp esi, dword [eax]
je 0x1002af0b
mov dword [ebp - 0x98], 1
jmp 0x1002af12
and dword [ebp - 0x98], 0
push 0
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
mov esi, dword [eax]
add esi, dword [ebp - 0x98]
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
cmp esi, dword [eax]
jne 0x1002af44
mov eax, 0xd06b
test eax, eax
jne 0x1002af44
and dword [ebp - 0xf8], 0
jmp 0x1002af4e
mov dword [ebp - 0xf8], 1
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
mov ecx, dword [ebp - 0xf8]
cmp ecx, dword [eax]
jne 0x1002af6e
mov dword [ebp - 0xdc], 1
jmp 0x1002af75
and dword [ebp - 0xdc], 0
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 0xdc]
sub ecx, dword [ebp + eax - 0x16c]
cmp ecx, 0x1e707165
jge 0x1002afa2
cmp dword [ebp - 0xf0], 0
jne 0x1002afa2
and dword [ebp - 0x124], 0
jmp 0x1002afac
mov dword [ebp - 0x124], 1
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0x180], eax
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
push 1
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
mov esi, eax
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
mov ecx, dword [esi]
cmp ecx, dword [eax]
je 0x1002aff4
mov dword [ebp - 0x8c], 1
jmp 0x1002affb
and dword [ebp - 0x8c], 0
push 2
lea ecx, [ebp - 0x58]
call fcn.1001b8b2
mov ecx, dword [ebp - 0x8c]
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1001b8ad
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x64]
mov ecx, dword [ecx + 0x10]
mov dword [eax], ecx
mov dword [ebp - 0x10], 0x19d29be1
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x34], 0x142c78ef
mov dword [ebp - 0x84], 0xffffffff
imul eax, dword [ebp - 0x10], 0x25b0
test eax, eax
je 0x1002b213
mov dword [ebp - 0x11c], 0x23b4709b
mov dword [ebp - 0x5c], 0xffffffff
mov dword [ebp - 0x4c], 0
jmp 0x1002b073
mov eax, dword [ebp - 0x4c]
inc eax
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 1
jge 0x1002b089
mov eax, dword [ebp - 0x4c]
mov dword [ebp + eax*4 - 0xcc], 0xffffffff
jmp 0x1002b06c
cmp dword [ebp - 0x10], 0
jne 0x1002b1ae
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x10], eax
jl 0x1002b0a7
mov dword [ebp - 0xc4], 1
jmp 0x1002b0ae
and dword [ebp - 0xc4], 0
mov eax, dword [ebp - 0xc4]
sub eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x11c]
jge 0x1002b0cb
mov dword [ebp - 0x108], 1
jmp 0x1002b0d2
and dword [ebp - 0x108], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x188], eax
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0xcc], 0x7a5e
jge 0x1002b0fa
mov dword [ebp - 0x94], 1
jmp 0x1002b101
and dword [ebp - 0x94], 0
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
cmp dword [ebp - 0x10], eax
jne 0x1002b116
cmp dword [ebp - 0x10], 0
cmp dword [ebp - 0x5c], 0x46c2
jle 0x1002b12b
mov dword [ebp - 0xec], 1
jmp 0x1002b132
and dword [ebp - 0xec], 0
mov eax, dword [ebp - 0xec]
neg eax
cmp eax, 3
jle 0x1002b14b
mov dword [ebp - 0x9c], 1
jmp 0x1002b152
and dword [ebp - 0x9c], 0
mov eax, dword [ebp - 0x10]
cmp dword [ebp - 0x9c], eax
je 0x1002b169
mov dword [ebp - 0xa4], 1
jmp 0x1002b170
and dword [ebp - 0xa4], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0xcc]
cmp dword [ebp - 0xa4], eax
jle 0x1002b191
mov dword [ebp - 0xe4], 1
jmp 0x1002b198
and dword [ebp - 0xe4], 0
mov eax, dword [ebp - 0xe4]
sub eax, 0xea0a
jne 0x1002b1ae
and dword [ebp - 0xac], 0
jmp 0x1002b1b8
mov dword [ebp - 0xac], 1
cmp dword [ebp - 0xac], 5
jne 0x1002b1d3
cmp dword [ebp - 0x10], 0
je 0x1002b1d3
mov dword [ebp - 0xd4], 1
jmp 0x1002b1da
and dword [ebp - 0xd4], 0
mov eax, dword [ebp - 0xd4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x1002b1fb
cmp dword [ebp - 0x10], 0
je 0x1002b1fb
mov dword [ebp - 0xb4], 1
jmp 0x1002b202
and dword [ebp - 0xb4], 0
mov eax, dword [ebp - 0xb4]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
jmp 0x1002b22c
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x1002b22c
push 0
push 0x1e52
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x190], eax
mov eax, dword [ebp - 0x34]
cmp dword [ebp - 0x34], eax
jg 0x1002b249
mov dword [ebp - 0xf4], 1
jmp 0x1002b250
and dword [ebp - 0xf4], 0
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0xf4]
jge 0x1002b267
mov dword [ebp - 0x88], 1
jmp 0x1002b26e
and dword [ebp - 0x88], 0
cmp dword [ebp - 0x34], 0
jne 0x1002b286
mov eax, 0xe0c0a103
test eax, eax
jne 0x1002b286
and dword [ebp - 0xbc], 0
jmp 0x1002b290
mov dword [ebp - 0xbc], 1
mov eax, dword [ebp - 0x2c]
imul eax, dword [ebp - 0xbc]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
imul eax, dword [ebp - 0x88]
cmp eax, dword [ebp - 0x34]
jge 0x1002b2be
mov dword [ebp - 0x90], 1
jmp 0x1002b2c5
and dword [ebp - 0x90], 0
mov eax, dword [ebp - 0x90]
neg eax
sub eax, dword [ebp - 0x2c]
jne 0x1002b326
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x150], 0x9a1d127a
mov dword [ebp - 0x15c], 9
mov dword [ebp - 0x17c], 0xfffffffd
mov dword [ebp - 0x164], 6
mov dword [ebp - 0x120], 1
lea eax, [ebp - 0x120]
push eax
push 0
push 0x5327
call fcn.100336f1
add esp, 0xc
jmp 0x1002b342
mov byte [ebp - 0x1b], 0
push 0x3c97
push 0x3998
push 0
lea eax, [ebp - 0x1b]
push eax
call fcn.10033666
add esp, 0x10
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
jne 0x1002b814
mov dword [ebp - 0x48], 1
mov dword [ebp - 0x48], 0
jmp 0x1002b365
mov eax, dword [ebp - 0x48]
dec eax
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0xfffffff6
jle 0x1002b3cb
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x44], 0xf
jmp 0x1002b382
mov eax, dword [ebp - 0x44]
dec eax
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 8
jle 0x1002b3c9
mov dword [ebp - 0x40], 0xffffffff
mov dword [ebp - 0x40], 0
jmp 0x1002b39f
mov eax, dword [ebp - 0x40]
inc eax
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0x12
je 0x1002b3c7
mov dword [ebp - 0x110], 1
push 0
push 0x1db3
lea eax, [ebp - 0x110]
push eax
call fcn.1002add1
add esp, 0xc
jmp 0x1002b398
jmp 0x1002b37b
jmp 0x1002b35e
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x24]
and eax, 0x40
je 0x1002b3f0
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0
call fcn.1002b990
add esp, 0xc
jmp 0x1002b814
mov eax, dword [ebp - 0x64]
mov eax, dword [eax + 0x24]
and eax, 0x80
je 0x1002b814
mov dword [ebp - 0x7c], 0xffff
mov dword [ebp - 0x78], 0xffff
mov dword [ebp - 0x74], 0xffff
mov dword [ebp - 0x70], 0xffff
mov dword [ebp - 0x18], 0x2c36544d
mov dword [ebp - 0x14], 0x19a6fdd8
mov dword [ebp - 0x20], 0x790660d6
mov dword [ebp - 0x10c], 0xbdccb4f7
xor eax, eax
jne 0x1002b50b
push 4
pop eax
shl eax, 1
cmp dword [ebp + eax - 0x7c], 0
jne 0x1002b4d9
push 4
pop eax
shl eax, 0
push 4
pop ecx
shl ecx, 1
mov ecx, dword [ebp + ecx - 0x7c]
cmp dword [ebp + eax - 0x7c], ecx
je 0x1002b472
mov dword [ebp - 0x80], 1
jmp 0x1002b476
and dword [ebp - 0x80], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x7c]
cmp dword [ebp - 0x80], eax
jl 0x1002b491
mov dword [ebp - 0xa0], 1
jmp 0x1002b498
and dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0x5ed7
jle 0x1002b4b0
mov dword [ebp - 0x12c], 1
jmp 0x1002b4b7
and dword [ebp - 0x12c], 0
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x7c]
push 4
pop ecx
imul ecx, ecx, 3
imul eax, dword [ebp + ecx - 0x7c]
test eax, eax
jne 0x1002b4d9
and dword [ebp - 0x118], 0
jmp 0x1002b4e3
mov dword [ebp - 0x118], 1
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x7c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x18c], eax
mov eax, 0x55a63a74
test eax, eax
jne 0x1002b50b
and dword [ebp - 0xa8], 0
jmp 0x1002b515
mov dword [ebp - 0xa8], 1
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0xa8]
add eax, dword [ebp - 0x14]
imul eax, dword [ebp - 0x20]
test eax, eax
je 0x1002b554
cmp dword [ebp - 0x20], 0
je 0x1002b554
mov byte [ebp - 0x21], 0
movzx eax, byte [ebp - 0x21]
test eax, eax
je 0x1002b54f
push 0x2879
push 0x2d33
push 0
call fcn.1002ad86
add esp, 0xc
jmp 0x1002b7ff
mov dword [ebp - 0x28], 5
mov dword [ebp - 0x38], 0x4322e7c6
mov dword [ebp - 0x140], 6
mov dword [ebp - 0x13c], 6
mov dword [ebp - 0x138], 6
mov dword [ebp - 0x134], 6
lea ecx, [ebp - 0x65]
call fcn.1000db63
push eax
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x140]
push eax
lea ecx, [ebp - 0x198]
call fcn.1001b8c1
push dword [eax + 4]
push dword [eax]
lea ecx, [ebp - 0x14c]
call fcn.1001b883
mov dword [ebp - 4], 1
mov dword [ebp - 0x14], 0
jmp 0x1002b5d3
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
jg 0x1002b6f5
mov dword [ebp - 0x6c], 0xffffffff
mov dword [ebp - 0x18], 0
jmp 0x1002b5f4
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 3
jg 0x1002b6f0
mov dword [ebp - 0x104], 6
mov eax, dword [ebp - 0x18]
cmp dword [ebp + eax*4 - 0x7c], 0
je 0x1002b61f
push 0
call fcn.1002c5b0
pop ecx
jmp 0x1002b6eb
mov dword [ebp - 0xb0], 0xc8a81d5f
mov dword [ebp - 0x100], 0xe74fd574
mov byte [ebp - 0x1a], 0
movzx eax, byte [ebp - 0x1a]
test eax, eax
je 0x1002b647
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov dword [ebp - 0xb0], 0xa966896e
mov eax, dword [ebp - 0x100]
cmp dword [ebp - 0xb0], eax
jg 0x1002b66b
mov dword [ebp - 0xb8], 1
jmp 0x1002b672
and dword [ebp - 0xb8], 0
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x170], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x174], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x154], eax
push 4
pop eax
imul eax, eax, 3
mov eax, dword [ebp + eax - 0x7c]
sub eax, dword [ebp - 0x6c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xb8], eax
jne 0x1002b6ba
mov dword [ebp - 0xc0], 1
jmp 0x1002b6c1
and dword [ebp - 0xc0], 0
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0xc0], eax
je 0x1002b6d8
mov dword [ebp - 0xc8], 1
jmp 0x1002b6df
and dword [ebp - 0xc8], 0
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x104], eax
jmp 0x1002b5ed
jmp 0x1002b5cc
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x18], eax
push 4
pop eax
shl eax, 1
mov eax, dword [ebp + eax - 0x7c]
cmp dword [ebp - 0x18], eax
jl 0x1002b70d
cmp dword [ebp - 0x28], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x20]
cmp dword [ebp + eax - 0x7c], ecx
jg 0x1002b725
mov dword [ebp - 0x60], 1
jmp 0x1002b729
and dword [ebp - 0x60], 0
push 2
lea ecx, [ebp - 0x14c]
call fcn.1001b8b2
mov ecx, dword [ebp - 0x60]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x60]
jge 0x1002b74f
mov dword [ebp - 0xd0], 1
jmp 0x1002b756
and dword [ebp - 0xd0], 0
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x20], eax
je 0x1002b773
mov dword [ebp - 0xd8], 1
jmp 0x1002b77a
and dword [ebp - 0xd8], 0
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0xd8], eax
jg 0x1002b797
cmp dword [ebp - 0x10c], 0
jne 0x1002b797
and dword [ebp - 0x114], 0
jmp 0x1002b7a1
mov dword [ebp - 0x114], 1
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x7c]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], eax
jl 0x1002b7dd
push 3
lea ecx, [ebp - 0x14c]
call fcn.1001b8b2
cmp dword [eax], 0
jne 0x1002b7dd
and dword [ebp - 0xe0], 0
jmp 0x1002b7e7
mov dword [ebp - 0xe0], 1
mov eax, dword [ebp - 0xe0]
mov dword [ebp - 0x38], eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14c]
call fcn.1001b8ad
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0xe8]
push eax
push 1
call fcn.1002ad86
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret