Function at 0x10121cc
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
xor esi, esi
xor eax, eax
mov dword [ebp - 0x30], esi
lea edi, [ebp - 0x2c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 0x20000000
stosd dword es:[edi], eax
cmp dword [ebp + 0x24], esi
je 0x1012783
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x1012783
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x24
jb 0x1012773
cmp dword [eax + 4], 0x5d6
jne 0x1012773
cmp dword [eax], ecx
ja 0x1012773
push 0x40
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, esi
jne 0x1012264
mov eax, 0x8007000e
push eax
push 0x55c
mov edi, eax
push 0x1001bb0
push 0x1001de0
call fcn.0101167d
jmp 0x10127b5
mov eax, dword [ebp + 8]
mov dword [ebx + 0x2c], 1
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x3c], ecx
mov ecx, dword [ebp + 0x18]
mov dword [ebx + 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 0x10], ecx
lea esi, [eax + 0x10]
lea edi, [ebx + 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x30]
push ecx
movsd dword es:[edi], dword [esi]
push 0x1012000
push eax
movsd dword es:[edi], dword [esi]
call fcn.010120d7
mov edi, eax
test edi, edi
jge 0x10122a7
push edi
push 0x56c
jmp 0x1012250
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 0x20]
mov dword [ebp + 0xc], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], edx
test eax, eax
je 0x1012763
test ecx, ecx
je 0x1012763
cmp dword [ebp - 0x28], 0
je 0x1012763
push 0
push ecx
call fcn.0101509b
mov dword [ebx + 8], eax
test eax, eax
jne 0x10122fb
mov eax, 0x8007000e
push eax
push 0x57d
jmp 0x101224e
cmp dword [ebp + 0x1c], 0
je 0x101234c
test esi, esi
jne 0x1012315
mov edi, 0xc1420132
push edi
push 0x587
jmp 0x1012250
push dword [ebp - 0x10]
push esi
call fcn.0101486e
test eax, eax
jne 0x101234c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1012336
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012341
mov edi, 0x80004005
push edi
push 0x58d
jmp 0x1012250
cmp dword [ebp + 0x20], 0
je 0x1012370
push 0
push 0x2000001
push 3
push 0
push 3
push 0x80000000
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
lea eax, [ebx + 0x34]
cmp dword [eax], 0xffffffff
je 0x101237e
cmp dword [ebp + 0x20], 0
jne 0x1012398
push eax
push dword [ebx + 8]
call fcn.01012f60
mov edi, eax
test edi, edi
jge 0x1012398
push edi
push 0x5a8
jmp 0x1012250
push dword [ebp + 0xc]
mov esi, 0x1001de0
push esi
push 0x1001da4
push 0x10000
call fcn.01011628
add esp, 0x10
cmp dword [ebp + 0x18], 0
jne 0x10123d6
cmp dword [ebp + 0x14], 0
je 0x10123cf
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
mov dword [ebp - 0xc], 0xe0000000
je 0x10123d6
mov dword [ebp - 0xc], 0xa0000000
push 0
push dword [ebp + 0xc]
call fcn.0101509b
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x10123ff
mov eax, 0x8007000e
push eax
push 0x5bb
push 0x1001bb0
mov edi, eax
push esi
jmp 0x101225a
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp + 0x10]
push 0
or eax, 0x40
push eax
push 3
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.0101aecd
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x101245b
call esi
cmp eax, 3
je 0x101243c
cmp eax, 2
je 0x101243c
cmp eax, 0x35
je 0x101243c
cmp eax, 0xb
jne 0x101243e
xor eax, eax
test eax, eax
je 0x101245b
jle 0x101244e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x5d5
jmp 0x1012250
cmp dword [ebp + 0x18], 0
jne 0x101275a
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x10125ed
push dword [ebp - 0x18]
push eax
call fcn.01019517
test eax, eax
jne 0x10125ae
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x10124b6
call esi
test eax, eax
jle 0x10124a0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10124ab
mov edi, 0x80004005
push edi
push 0x5e6
jmp 0x1012250
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 0x18]
call fcn.01011ba0
mov edi, eax
test edi, edi
jge 0x10124d5
push edi
push 0x5ea
jmp 0x1012250
mov eax, dword [ebp - 8]
push 2
pop ecx
mul ecx
lea ecx, [ebp - 8]
push ecx
push edx
push eax
call fcn.01011101
mov edi, eax
test edi, edi
jge 0x10124f9
push edi
push 0x5ed
jmp 0x1012250
push dword [ebp - 8]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
test eax, eax
jne 0x1012524
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x5f0
jmp 0x101278e
lea eax, [ebp + 0x18]
push eax
push 1
push dword [ebp + 0x18]
call fcn.01011ba0
mov edi, eax
test edi, edi
jge 0x1012543
push edi
push 0x5f3
jmp 0x101278e
push dword [ebp - 4]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1012579
call esi
test eax, eax
jle 0x1012563
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x101256e
mov edi, 0x80004005
push edi
push 0x5f8
jmp 0x101278e
push dword [ebp - 4]
push dword [ebx + 0x28]
call fcn.01019517
test eax, eax
jne 0x10125ae
call esi
test eax, eax
jle 0x1012598
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10125a3
mov edi, 0x80004005
push edi
push 0x600
jmp 0x101278e
mov eax, dword [ebp + 8]
push dword [eax + 8]
push dword [ebx + 0x28]
call fcn.01015f45
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x1012656
call esi
test eax, eax
jle 0x10125d7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10125e2
mov edi, 0x80004005
push edi
push 0x607
jmp 0x101278e
mov eax, dword [ebp + 8]
push 0
push dword [eax + 8]
push 0
call fcn.0101a142
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x1012629
call esi
test eax, eax
jle 0x1012613
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x101261e
mov edi, 0x80004005
push edi
push 0x611
jmp 0x1012250
mov esi, dword [ebp + 8]
push 0
add esi, 0xc
push esi
push eax
mov dword [ebx + 0x3c], 1
call fcn.0101965b
or dword [esi], 0x40000
push 0
push esi
push dword [ebx + 0x24]
call fcn.01019ae7
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
push dword [ebx + 0x24]
call fcn.010196cb
test eax, eax
jne 0x101268b
call esi
test eax, eax
jle 0x1012675
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012680
mov edi, 0x80004005
push edi
push 0x626
jmp 0x101278e
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
push dword [ebx + 0x24]
call fcn.01019a85
test eax, eax
jne 0x10126c4
call esi
test eax, eax
jle 0x10126ae
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10126b9
mov edi, 0x80004005
push edi
push 0x631
jmp 0x101278e
mov eax, dword [ebp + 8]
push 0
add eax, 0xc
push eax
push dword [ebx + 0x24]
call fcn.01019ae7
test eax, eax
jne 0x10126ff
call esi
test eax, eax
jle 0x10126e9
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10126f4
mov edi, 0x80004005
push edi
push 0x63d
jmp 0x101278e
cmp dword [ebx + 0x28], 0
je 0x101273c
push 0x1000008
push dword [ebx + 8]
push dword [ebx + 0x24]
call fcn.010191de
test eax, eax
jne 0x101273c
call esi
test eax, eax
jle 0x1012729
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012734
mov edi, 0x80004005
push edi
push 0x64a
jmp 0x101278e
lea esi, [ebx + 0x38]
push esi
push 1
push 0x2000c
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
jne 0x101275a
and dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
xor ebx, ebx
jmp 0x101279d
mov edi, 0xc1420132
push edi
push 0x575
jmp 0x1012250
mov edi, 0xc1420132
push edi
push 0x558
jmp 0x1012250
mov edi, 0x80070057
push edi
push 0x551
push 0x1001bb0
push 0x1001de0
call fcn.0101167d
cmp dword [ebp - 4], 0
je 0x10127b5
push dword [ebp - 4]
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call fcn.01011f16
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20