Function at 0x10120ec
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 0x10126a3
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x10126a3
mov ecx, dword [ebp + 0xc]
cmp ecx, 0x24
jb 0x1012693
cmp dword [eax + 4], 0x5d6
jne 0x1012693
cmp dword [eax], ecx
ja 0x1012693
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 0x1012184
mov eax, 0x8007000e
push eax
push 0x55c
mov edi, eax
push 0x1001bb0
push 0x1001de0
call fcn.0101159d
jmp 0x10126d5
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 0x1011f20
push eax
movsd dword es:[edi], dword [esi]
call fcn.01011ff7
mov edi, eax
test edi, edi
jge 0x10121c7
push edi
push 0x56c
jmp 0x1012170
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 0x1012683
test ecx, ecx
je 0x1012683
cmp dword [ebp - 0x28], 0
je 0x1012683
push 0
push ecx
call fcn.01014fba
mov dword [ebx + 8], eax
test eax, eax
jne 0x101221b
mov eax, 0x8007000e
push eax
push 0x57d
jmp 0x101216e
cmp dword [ebp + 0x1c], 0
je 0x101226c
test esi, esi
jne 0x1012235
mov edi, 0xc1420132
push edi
push 0x587
jmp 0x1012170
push dword [ebp - 0x10]
push esi
call fcn.0101478e
test eax, eax
jne 0x101226c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x1012256
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012261
mov edi, 0x80004005
push edi
push 0x58d
jmp 0x1012170
cmp dword [ebp + 0x20], 0
je 0x1012290
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 0x101229e
cmp dword [ebp + 0x20], 0
jne 0x10122b8
push eax
push dword [ebx + 8]
call fcn.01012e80
mov edi, eax
test edi, edi
jge 0x10122b8
push edi
push 0x5a8
jmp 0x1012170
push dword [ebp + 0xc]
mov esi, 0x1001de0
push esi
push 0x1001da4
push 0x10000
call fcn.01011548
add esp, 0x10
cmp dword [ebp + 0x18], 0
jne 0x10122f6
cmp dword [ebp + 0x14], 0
je 0x10122ef
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
mov dword [ebp - 0xc], 0xe0000000
je 0x10122f6
mov dword [ebp - 0xc], 0xa0000000
push 0
push dword [ebp + 0xc]
call fcn.01014fba
mov dword [ebx + 0xc], eax
test eax, eax
jne 0x101231f
mov eax, 0x8007000e
push eax
push 0x5bb
push 0x1001bb0
mov edi, eax
push esi
jmp 0x101217a
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.0101adec
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x28], eax
test eax, eax
jne 0x101237b
call esi
cmp eax, 3
je 0x101235c
cmp eax, 2
je 0x101235c
cmp eax, 0x35
je 0x101235c
cmp eax, 0xb
jne 0x101235e
xor eax, eax
test eax, eax
je 0x101237b
jle 0x101236e
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
push edi
push 0x5d5
jmp 0x1012170
cmp dword [ebp + 0x18], 0
jne 0x101267a
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x101250d
push dword [ebp - 0x18]
push eax
call fcn.01019436
test eax, eax
jne 0x10124ce
push eax
push eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp + 0x18], eax
test eax, eax
jne 0x10123d6
call esi
test eax, eax
jle 0x10123c0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10123cb
mov edi, 0x80004005
push edi
push 0x5e6
jmp 0x1012170
lea eax, [ebp - 8]
push eax
push 2
push dword [ebp + 0x18]
call fcn.01011ac0
mov edi, eax
test edi, edi
jge 0x10123f5
push edi
push 0x5ea
jmp 0x1012170
mov eax, dword [ebp - 8]
push 2
pop ecx
mul ecx
lea ecx, [ebp - 8]
push ecx
push edx
push eax
call fcn.01011021
mov edi, eax
test edi, edi
jge 0x1012419
push edi
push 0x5ed
jmp 0x1012170
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 0x1012444
mov eax, 0x8007000e
push eax
mov edi, eax
push 0x5f0
jmp 0x10126ae
lea eax, [ebp + 0x18]
push eax
push 1
push dword [ebp + 0x18]
call fcn.01011ac0
mov edi, eax
test edi, edi
jge 0x1012463
push edi
push 0x5f3
jmp 0x10126ae
push dword [ebp - 4]
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x1012499
call esi
test eax, eax
jle 0x1012483
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x101248e
mov edi, 0x80004005
push edi
push 0x5f8
jmp 0x10126ae
push dword [ebp - 4]
push dword [ebx + 0x28]
call fcn.01019436
test eax, eax
jne 0x10124ce
call esi
test eax, eax
jle 0x10124b8
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10124c3
mov edi, 0x80004005
push edi
push 0x600
jmp 0x10126ae
mov eax, dword [ebp + 8]
push dword [eax + 8]
push dword [ebx + 0x28]
call fcn.01015e64
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x1012576
call esi
test eax, eax
jle 0x10124f7
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012502
mov edi, 0x80004005
push edi
push 0x607
jmp 0x10126ae
mov eax, dword [ebp + 8]
push 0
push dword [eax + 8]
push 0
call fcn.0101a061
mov dword [ebx + 0x24], eax
test eax, eax
jne 0x1012549
call esi
test eax, eax
jle 0x1012533
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x101253e
mov edi, 0x80004005
push edi
push 0x611
jmp 0x1012170
mov esi, dword [ebp + 8]
push 0
add esi, 0xc
push esi
push eax
mov dword [ebx + 0x3c], 1
call fcn.0101957a
or dword [esi], 0x40000
push 0
push esi
push dword [ebx + 0x24]
call fcn.01019a06
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x1c]
push dword [ebx + 0x24]
call fcn.010195ea
test eax, eax
jne 0x10125ab
call esi
test eax, eax
jle 0x1012595
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10125a0
mov edi, 0x80004005
push edi
push 0x626
jmp 0x10126ae
mov eax, dword [ebp + 8]
add eax, 0x10
push eax
push dword [ebx + 0x24]
call fcn.010199a4
test eax, eax
jne 0x10125e4
call esi
test eax, eax
jle 0x10125ce
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x10125d9
mov edi, 0x80004005
push edi
push 0x631
jmp 0x10126ae
mov eax, dword [ebp + 8]
push 0
add eax, 0xc
push eax
push dword [ebx + 0x24]
call fcn.01019a06
test eax, eax
jne 0x101261f
call esi
test eax, eax
jle 0x1012609
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012614
mov edi, 0x80004005
push edi
push 0x63d
jmp 0x10126ae
cmp dword [ebx + 0x28], 0
je 0x101265c
push 0x1000008
push dword [ebx + 8]
push dword [ebx + 0x24]
call fcn.010190fd
test eax, eax
jne 0x101265c
call esi
test eax, eax
jle 0x1012649
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
jne 0x1012654
mov edi, 0x80004005
push edi
push 0x64a
jmp 0x10126ae
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 0x101267a
and dword [esi], eax
mov eax, dword [ebp + 0x24]
mov dword [eax], ebx
xor ebx, ebx
jmp 0x10126bd
mov edi, 0xc1420132
push edi
push 0x575
jmp 0x1012170
mov edi, 0xc1420132
push edi
push 0x558
jmp 0x1012170
mov edi, 0x80070057
push edi
push 0x551
push 0x1001bb0
push 0x1001de0
call fcn.0101159d
cmp dword [ebp - 4], 0
je 0x10126d5
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.01011e36
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0x20