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

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x489170]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x30
mov eax, 0x46467f
call fcn.00448a59
mov eax, dword [ebp + 0x110]
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x24], eax
xor ebx, ebx
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x23
push ebx
mov dword [ebp - 4], ebx
call edi
test eax, eax
jl 0x405163
call fcn.00426b70
push eax
lea ecx, [ebp - 0x14]
call fcn.00403730
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.0040404b
push 0x46cd58
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.PSAREQ0IAgAVCA4PQSUAFQA
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040127b
mov esi, dword [ebp - 0x14]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RCANDTQSBBMSMRMOBwgNBEQ
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.0040127b
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x26
push ebx
call edi
test eax, eax
jl 0x4051d7
call fcn.00426b70
push eax
lea ecx, [ebp - 0x14]
call fcn.00403730
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call fcn.0040404b
mov esi, dword [ebp - 0x14]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RDETDgYTAAwnCA0EEkQ
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040127b
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1c
push ebx
call edi
test eax, eax
jl 0x40528f
call fcn.00426b70
push eax
lea ecx, [ebp - 0x14]
call fcn.00403730
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.0040404b
push str.LocalLow
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.PS0OAgAN
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.0040127b
mov esi, dword [ebp - 0x14]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RCARESUAFQAtDgIADS0OFkQ
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 8
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040127b
lea eax, [ebp]
push eax
push ebx
push ebx
push 0x1a
push ebx
call edi
test eax, eax
jl 0x405303
call fcn.00426b70
push eax
lea ecx, [ebp - 0x14]
call fcn.00403730
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0040404b
mov esi, dword [ebp - 0x14]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RCARESUAFQBE
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xa
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.0040127b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.RDUkLDFE
push esi
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add esp, 0x20
push eax
push ecx
call fcn.0044b58e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.0040127b
test bl, bl
je 0x40539a
lea eax, [ebp - 0x14]
push eax
call fcn.00404585
pop ecx
push dword [ebp - 0x14]
mov byte [ebp - 4], 0xb
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.00403be9
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.0040127b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.RCcnMRMOBwgNBEQ
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add esp, 0x20
push eax
push ecx
call fcn.0044b58e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.0040127b
test bl, bl
je 0x40557f
call fcn.00426b70
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403730
lea eax, [ebp]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 0xd
call edi
test eax, eax
jl 0x405574
call fcn.00426b70
push eax
lea ecx, [ebp - 0x14]
call fcn.00403730
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0xe
call fcn.0040404b
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.PSwOGwgNDQA9JwgTBAcOGT0xEw4HCA0EEj0
call fcn.004023b7
lea eax, [ebp - 0x18]
push eax
call fcn.00404227
add esp, 0x20
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0xf
call fcn.00403e7b
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xe
call fcn.0040127b
lea ecx, [ebp - 0x3c]
call fcn.0042a43e
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.S09L
mov byte [ebp - 4], 0x10
call fcn.004023b7
lea eax, [ebp - 0x20]
push eax
call fcn.00404227
add esp, 0x20
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x11
call fcn.00403ff4
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x12
call fcn.0042a4b6
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040127b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.0040127b
cmp esi, ebx
je 0x405525
lea ecx, [ebp - 0x3c]
call fcn.0042a142
mov esi, eax
mov eax, dword [ebp - 0x3c]
push 0x10
lea ecx, [ebp - 0x3c]
call dword [eax + 0x38]
cmp eax, ebx
je 0x4054cf
lea ecx, [ebp - 0x3c]
call fcn.0042a403
cmp eax, ebx
jne 0x4054cf
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042a6f0
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x13
call fcn.00403e7b
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.0040127b
mov esi, dword [ebp - 0x14]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.RCcnMRMOBwgNBEQ
call fcn.004023b7
lea eax, [ebp - 0x20]
push eax
call fcn.00404227
add esp, 0x20
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0x14
call fcn.00403be9
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.0040127b
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0xe
call fcn.0042a464
lea ecx, [esi - 0x10]
call fcn.0040127b
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x104]
xor ecx, ebp
call fcn.00448a17
add ebp, 0x108
leave
ret