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

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x48c170]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x2c
mov eax, 0x467653
call fcn.0044bab9
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, dword [ebp + 0x110]
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jl 0x405117
call fcn.00429b68
push eax
lea ecx, [ebp - 0x18]
call fcn.0040726f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00404008
push 0x46fdbc
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BhsqKjYzOTsuMzU0eh47Ljs
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403bed
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401268
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fxs2Ng8pPygpCig1PDM2P38
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00403bed
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401268
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x26
push esi
call ebx
test eax, eax
jl 0x40518c
call fcn.00429b68
push eax
lea ecx, [ebp - 0x18]
call fcn.0040726f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404008
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fwooNT0oOzccMzY_KX8
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00403bed
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401268
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x1c
push esi
call ebx
test eax, eax
jl 0x405317
call fcn.00429b68
push eax
lea ecx, [ebp - 0x18]
call fcn.0040726f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00404008
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.fxsqKh47LjsWNTk7NhY1LX8
push esi
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
call fcn.00403841
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x40528c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BhY1OTs2FjUt
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov byte [ebp - 4], 7
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BhY1OTs2
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00403bed
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401268
push dword [ebp - 0x18]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
mov byte [ebp - 4], 9
jmp 0x4052ec
push 0
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.fxsqKh47LjsWNTk7Nn8
push esi
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
call fcn.00403841
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x405300
push dword [ebp - 0x18]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
mov byte [ebp - 4], 0xa
push dword [eax]
mov ecx, edi
call fcn.00403bed
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401268
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x1a
push esi
call ebx
test eax, eax
jl 0x40538a
call fcn.00429b68
push eax
lea ecx, [ebp - 0x18]
call fcn.0040726f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.00404008
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fxsqKh47Ljt_
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00403bed
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401268
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov esi, str.fw4fFwp_
push esi
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x20
push eax
push ecx
call fcn.0044cf6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x40541d
lea eax, [ebp - 0x18]
push eax
call fcn.0040453a
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push esi
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.00403bed
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401268
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401268
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.fxwcCig1PDM2P38
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x20
push eax
push ecx
call fcn.0044cf6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401268
test bl, bl
je 0x405602
call fcn.00429b68
push eax
lea ecx, [ebp - 0x1c]
call fcn.0040726f
lea eax, [ebp]
push eax
xor ebx, ebx
push ebx
push ebx
push 0x1a
push ebx
mov byte [ebp - 4], 0xf
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x4055f7
call fcn.00429b68
push eax
lea ecx, [ebp - 0x18]
call fcn.0040726f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.00404008
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Bhc1IDM2NjsGHDMoPzw1IgYKKDU8MzY_KQY
call fcn.004023d2
lea eax, [ebp - 0x14]
push eax
call fcn.004041dc
add esp, 0x20
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x11
call fcn.00403e47
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.00401268
lea ecx, [ebp - 0x38]
call fcn.0042d47d
push ebx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.cHRw
mov byte [ebp - 4], 0x12
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x13
call fcn.00403fb1
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x14
call fcn.0042d512
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401268
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401268
cmp esi, ebx
je 0x4055a9
lea ecx, [ebp - 0x38]
call fcn.0042d181
mov esi, eax
mov eax, dword [ebp - 0x38]
push 0x10
lea ecx, [ebp - 0x38]
call dword [eax + 0x38]
cmp eax, ebx
je 0x405553
lea ecx, [ebp - 0x38]
call fcn.0042d442
cmp eax, ebx
jne 0x405553
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.0042d74c
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x15
call fcn.00403e47
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401268
mov esi, dword [ebp - 0x18]
push esi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.fxwcCig1PDM2P38
call fcn.004023d2
lea eax, [ebp - 0x20]
push eax
call fcn.004041dc
add esp, 0x20
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0x16
call fcn.00403bed
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401268
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0x10
call fcn.0042d4a3
lea ecx, [esi - 0x10]
call fcn.00401268
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401268
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.0044ba77
add ebp, 0x108
leave
ret