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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44d4a6
push eax
mov dword fs:[0], esp
sub esp, 0x620
push ebx
push ebp
push esi
push edi
call fcn.00412d20
cmp eax, 3
jle 0x412532
mov eax, dword [esp + 0x640]
xor ebx, ebx
mov eax, dword [eax]
cmp dword [eax - 0xc], ebx
jl 0x4121fd
mov dword [esp + 0x14], eax
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x412211
mov ecx, dword [0x463290]
push eax
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.00403090
lea ecx, [esp + 0x14]
mov dword [esp + 0x638], ebx
call fcn.00414e10
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.USER32.dll_CharLowerW]
push edx
call esi
mov eax, dword [0x463290]
mov dword [esp + 0x10], eax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov ebp, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov word [esp + 0x18], bx
push ebx
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
push 0x26
push ecx
push ebx
mov byte [esp + 0x648], 1
stosw word es:[edi], ax
call ebp
lea edx, [esp + 0x18]
test edx, edx
jne 0x412270
xor eax, eax
jmp 0x41227b
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x18]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404f60
lea ecx, [esp + 0x10]
call fcn.00414e10
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004154d0
cmp eax, 0xffffffff
je 0x41231c
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4122df
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4122df
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4124dc
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4124dc
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, 1
jmp 0x412534
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x222]
mov word [esp + 0x220], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x224]
push 0x24
push eax
push ebx
call ebp
lea ecx, [esp + 0x220]
test ecx, ecx
jne 0x412353
xor eax, eax
jmp 0x412361
lea edx, [esp + 0x220]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x220]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404f60
lea ecx, [esp + 0x10]
call fcn.00414e10
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004154d0
cmp eax, 0xffffffff
je 0x412405
mov eax, dword [esp + 0x10]
mov edx, dword [0x463294]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4123c8
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4123c8
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4124dc
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4124dc
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, 1
jmp 0x412534
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x42a]
mov word [esp + 0x428], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
lea eax, [esp + 0x42c]
push 8
push eax
push ebx
call ebp
lea ecx, [esp + 0x428]
test ecx, ecx
jne 0x41243c
xor eax, eax
jmp 0x41244a
lea edx, [esp + 0x428]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x428]
push ecx
push eax
lea ecx, [esp + 0x18]
call fcn.00404f60
lea ecx, [esp + 0x10]
call fcn.00414e10
mov edx, dword [esp + 0x10]
push edx
call esi
mov eax, dword [esp + 0x10]
push ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004154d0
mov edx, dword [0x463294]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x10]
lea ecx, [eax - 0xc]
je 0x4124e3
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp ecx, edx
je 0x4124b1
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4124b1
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4124dc
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x4124dc
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, 1
jmp 0x412534
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
cmp ecx, edx
je 0x412507
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x412507
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [0x463294]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x412532
add eax, 0xfffffff4
push eax
call esi
test eax, eax
jg 0x412532
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.0044737a
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x630]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x62c
ret