Function at 0x4273e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45854c
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x218
push ebx
push esi
xor esi, esi
push edi
sub eax, esi
mov ebx, ecx
je 0x427517
dec eax
jne 0x4277b3
push esi
push esi
push esi
push esi
call fcn.00427840
mov eax, dword [0x463058]
mov dword [esp + 0xc], eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x22c], 3
push ecx
mov ecx, ebx
call fcn.004279f0
mov edx, dword [esp + 0xc]
cmp dword [edx - 8], esi
je 0x4274ec
mov ecx, 0x82
xor eax, eax
mov edi, 0x46999c
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
lea eax, [eax + eax + 2]
shr eax, 1
cmp eax, 0x7fffffff
ja 0x42747a
push eax
push edx
push 0x104
push 0x46999c
call fcn.004277d0
push 0x46999c
mov ecx, ebx
call fcn.00427990
mov ecx, 0x46999c
lea edi, [ebx + 0x7bc]
test ecx, ecx
je 0x42749e
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
push esi
mov ecx, edi
call fcn.00407470
test eax, eax
je 0x4274d0
mov eax, dword [edi]
lea ebx, [esi + esi]
push ebx
lea edx, [esi + esi + 2]
push 0x46999c
push edx
push eax
call fcn.00402e50
mov ecx, dword [edi]
add esp, 0x10
mov dword [ecx - 8], esi
mov edx, dword [edi]
mov word [ebx + edx], 0
mov eax, dword [0x46978c]
push 1
push 0x46999c
push 0x3922
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [esp + 0xc]
mov eax, dword [0x46305c]
lea ecx, [edx - 0xc]
cmp ecx, eax
je 0x4277b3
add edx, 0xfffffff4
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4277b3
mov edx, dword [esp + 0xc]
jmp 0x4277a7
push ebp
push esi
push esi
push esi
push esi
mov ecx, ebx
call fcn.00427840
mov ebp, dword [esp + 0x23c]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
mov dword [esp + 0x20], ebp
call fcn.00427990
mov ecx, dword [0x463058]
mov dword [esp + 0x14], ecx
push esi
lea edx, [esp + 0x24]
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x24]
push 0x26
push edx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x240], esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x427661
mov eax, dword [0x463058]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, str.360360safe
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4275dc
mov edx, ecx
shr edx, 0x10
jne 0x42759f
xor eax, eax
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.00406f90
jmp 0x4275dc
push str.360360safe
call ebp
mov esi, eax
test esi, esi
je 0x4275dc
push esi
lea ecx, [esp + 0x14]
call fcn.00403db0
test eax, eax
je 0x4275dc
lea ecx, [esi + esi]
lea edx, [esi + esi + 2]
cmp edx, ecx
jb 0x4275dc
mov edi, dword [esp + 0x10]
mov eax, ecx
mov esi, str.360360safe
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x24]
push edx
push eax
mov byte [esp + 0x23c], 1
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov cx, word [esp + 0x23c]
lea edx, [esp + 0x20]
test edx, edx
mov word [esp + 0x20], cx
lea esi, [ebx + 0x7bc]
jne 0x427618
xor eax, eax
jmp 0x42761f
lea eax, [esp + 0x20]
push eax
call ebp
lea ecx, [esp + 0x20]
push ecx
push eax
mov ecx, esi
call fcn.00403e10
mov eax, dword [esp + 0x10]
mov ecx, dword [0x46305c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4276ce
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4276ce
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.0043733c
add esp, 4
jmp 0x4276ce
and ebp, 0xffff
lea ecx, [esp + 0x14]
push ebp
push 0x463550
push ecx
call fcn.00406f70
mov eax, dword [ebx + 0x7bc]
mov ecx, dword [esp + 0x20]
lea esi, [ebx + 0x7bc]
add esp, 0xc
cmp eax, ecx
je 0x4276ce
mov edx, dword [eax - 0xc]
test edx, edx
jge 0x4276a2
mov edx, dword [0x46305c]
add eax, 0xfffffff4
cmp eax, edx
jne 0x4276a9
mov eax, dword [ecx - 0xc]
test eax, eax
jge 0x4276b7
mov edx, dword [ecx - 8]
push ecx
push edx
mov ecx, esi
call fcn.00403e10
jmp 0x4276ce
mov ecx, esi
call fcn.00403ed0
mov eax, dword [esp + 0x14]
mov dword [esi], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [0x463058]
mov dword [esp + 0x18], eax
mov ecx, dword [ebx + 0x1a8]
push 0
push 0
push 0xf0
push ecx
mov byte [esp + 0x240], 2
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
pop ebp
je 0x42771f
lea edx, [esp + 0x14]
mov ecx, ebx
push edx
push esi
call fcn.00427ed0
test eax, eax
je 0x427715
push 1
lea ecx, [ebx + 0xa0]
jmp 0x427734
push 0
lea ecx, [ebx + 0xa0]
jmp 0x427734
push 0
lea ecx, [ebx + 0xa0]
call fcn.004158a0
push 0
lea ecx, [ebx + 0x430]
call fcn.004158a0
mov eax, dword [esp + 0x238]
mov ecx, dword [0x46978c]
push 0
push eax
push 0x3922
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, dword [esp + 0x14]
mov ecx, dword [0x46305c]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x427784
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x427784
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call fcn.0043733c
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x46305c]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4277b3
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4277b3
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0043733c
add esp, 4
mov ecx, dword [esp + 0x224]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x224
ret 0x10