Function at 0x1002c6ce
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006c376
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
movzx eax, byte [ebp + 0x2c]
test eax, eax
je 0x1002c99e
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xa8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x84], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x9c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x9c]
movzx eax, byte [eax]
test eax, eax
je 0x1002c903
mov eax, dword [ebp - 0xa4]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x94], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0xa8]
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x94]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x7c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x60]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x14]
mov dword [eax], 0
jmp 0x1002c7ee
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp dword [eax], 2
jg 0x1002c8fe
mov dword [ebp - 0x88], 0xba928f0b
mov eax, dword [ebp - 0x38]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.1000e623
cmp dword [eax], 0
je 0x1002c8be
mov eax, dword [ebp - 0x78]
mov eax, dword [eax]
mov dword [ebp - 0xb8], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0
je 0x1002c848
mov eax, dword [ebp - 0x38]
push dword [eax]
mov ecx, dword [ebp - 0x40]
call fcn.1000e623
cmp dword [eax], 0
je 0x1002c848
mov dword [ebp - 0x2c], 1
jmp 0x1002c84c
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x20]
cmp dword [eax], 1
jb 0x1002c85d
mov dword [ebp - 0x30], 1
jmp 0x1002c861
and dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x2c]
sub ecx, dword [eax]
cmp ecx, dword [ebp - 0x30]
jge 0x1002c877
mov dword [ebp - 0x28], 1
jmp 0x1002c87b
and dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
cmp dword [ebp - 0x28], 0xfffffff6
jl 0x1002c892
mov dword [ebp - 0x80], 1
jmp 0x1002c896
and dword [ebp - 0x80], 0
mov eax, dword [ebp - 0x24]
cmp dword [eax], 7
jbe 0x1002c8ac
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
jne 0x1002c8ac
and dword [ebp - 0x3c], 0
jmp 0x1002c8b3
mov dword [ebp - 0x3c], 1
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x88], eax
jmp 0x1002c8f9
mov eax, dword [ebp - 0x90]
cmp dword [eax], 0
je 0x1002c8cb
jmp 0x1002c8fe
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x1002c8e4
mov eax, dword [ebp - 0x24]
cmp dword [eax], 0
je 0x1002c8e4
mov dword [ebp - 0x44], 1
jmp 0x1002c8e8
and dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
imul eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x98]
mov dword [ecx], eax
jmp 0x1002c7e3
jmp 0x1002c99c
push 1
lea ecx, [ebp - 0xb4]
call fcn.1000e5bc
and dword [ebp - 4], 0
mov dword [ebp - 0x18], 0x3c7730f9
mov dword [ebp - 0x1c], 0
jmp 0x1002c92b
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jge 0x1002c944
push dword [ebp - 0x1c]
lea ecx, [ebp - 0xb4]
call fcn.1000e623
and dword [eax], 0
jmp 0x1002c924
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x1002c960
push 0x1f60
push 0x1324
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov dword [ebp - 0x18], 0
jmp 0x1002c970
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jl 0x1002c98d
push dword [ebp - 0x18]
lea ecx, [ebp - 0xb4]
call fcn.1000e623
cmp dword [eax], 0
je 0x1002c98b
jmp 0x1002c98d
jmp 0x1002c969
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xb4]
call fcn.1000e61e
jmp 0x1002c9dc
lea eax, [ebp + 0x28]
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
movzx eax, byte [eax]
test eax, eax
je 0x1002c9c3
push 0
push 0x1c7a
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
jmp 0x1002c9dc
mov byte [ebp - 0xe], 0
movzx eax, byte [ebp - 0xe]
test eax, eax
je 0x1002c9dc
push 0
push 0x1f1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret