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

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x494190]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x30
mov eax, 0x46a190
call fcn.0044e509
mov eax, dword [ebp + 0x110]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov dword [ebp - 0x24], eax
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 0x40522c
call fcn.0042c398
push eax
lea ecx, [ebp - 0x18]
call fcn.00403762
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.00404027
push 0x473128
push 3
pop edi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.CjwgcwAKe3MBAzwOBiIsIgoKLCARCgIiDCIoOhsDBn0MMQIgLyx2dg
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403c0c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401264
mov esi, dword [ebp - 0x18]
push esi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.CAkkLAoYIDgBCB4JBnhyZAkyDiwtPDwzAggKAwwKAicJMhFkLyx2dg
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 3
call fcn.00403c0c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401264
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401264
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x26
push esi
call ebx
test eax, eax
jl 0x4052a9
call fcn.0042c398
push eax
lea ecx, [ebp - 0x18]
call fcn.00403762
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404027
mov esi, dword [ebp - 0x18]
push esi
push 2
pop edi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.AiIBPgwxICAHDyA6ASx7IgEyf38pLHZ2
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.00403c0c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401264
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401264
xor esi, esi
jmp 0x4052ac
push 2
pop edi
lea eax, [ebp]
push eax
push esi
push esi
push 0x1c
push esi
call ebx
test eax, eax
jl 0x405452
call fcn.0042c398
push eax
lea ecx, [ebp - 0x18]
call fcn.00403762
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00404027
push esi
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.CjIFZAciIDgBAzwOGwMGfQwxAiAKPA4CBw8kCRsILCwMPDNkLyx2dg
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
mov ecx, dword [ebp - 0x24]
add esp, 0x28
push dword [eax]
call fcn.00403871
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x4053bc
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BxMjMhEKe3MACAoKCAgaJwgfAiooPHZ2
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
mov byte [ebp - 4], 7
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.EQwaEwkyGiQAIih2
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00403c0c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 6
call fcn.00401264
push dword [ebp - 0x18]
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.LhMnPgghOHwPMiRkACwoIAAIJCUJMhpzKSx2dg
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
mov byte [ebp - 4], 9
jmp 0x405426
push 0
push 3
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.DwgGIAAiIDgBAzwOGwMGfQwxAiAKPA4CBw8kCS4Tcnk
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
mov ecx, dword [ebp - 0x24]
add esp, 0x28
push dword [eax]
call fcn.00403871
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x40543b
push dword [ebp - 0x18]
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.AzNyPgghOHwPMiRkACwoIAAIJCUpLHZ2
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
mov byte [ebp - 4], 0xa
push dword [eax]
mov ecx, dword [ebp - 0x24]
call fcn.00403c0c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401264
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 0x4054c8
call fcn.0042c398
push eax
lea ecx, [ebp - 0x18]
call fcn.00403762
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.00404027
mov esi, dword [ebp - 0x18]
push esi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.DiMBPgghOHwPMiRkACZ_dg
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xc
call fcn.00403c0c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401264
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.LiU7PgM8fwwMeX92
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add esp, 0x28
push eax
push ecx
call fcn.0044f9be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x40556b
lea eax, [ebp - 0x18]
push eax
call fcn.00404601
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
push 3
pop edi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.CAkkLAoYICEoPBoBAjFzYA
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0xe
call fcn.00403c0c
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401264
jmp 0x40556e
push 3
pop edi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.BxkFfSgiIDguPB4GBhgKLAkzLAgBGigmLXgSdg
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add esp, 0x28
push eax
push ecx
call fcn.0044f9be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x40575f
call fcn.0042c398
push eax
lea ecx, [ebp - 0x1c]
call fcn.00403762
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 0x405754
call fcn.0042c398
push eax
lea ecx, [ebp - 0x18]
call fcn.00403762
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.00404027
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.DwogOA4se3MOIgoMDAoCJwofAiAOPHMSCiV_AwIlOCwJIQYkABoaEgwhcwgCIixgCQogJC8sdnY
call fcn.004023c4
lea eax, [ebp - 0x14]
push eax
call fcn.0040420d
add esp, 0x28
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x11
call fcn.00403e66
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.00401264
lea ecx, [ebp - 0x3c]
call fcn.0042fd07
push ebx
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.DyIGCAwJAigDGAZ2
mov byte [ebp - 4], 0x12
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
add esp, 0x28
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x13
call fcn.00403fd0
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call fcn.0042fd7f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401264
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401264
cmp esi, ebx
je 0x405703
lea ecx, [ebp - 0x3c]
call fcn.0042fa0b
mov esi, eax
mov eax, dword [ebp - 0x3c]
push 0x10
lea ecx, [ebp - 0x3c]
call dword [eax + 0x38]
cmp eax, ebx
je 0x4056ad
lea ecx, [ebp - 0x3c]
call fcn.0042fccc
cmp eax, ebx
jne 0x4056ad
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042ffb9
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x15
call fcn.00403e66
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401264
mov esi, dword [ebp - 0x18]
push esi
push edi
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.ChksLgEyIDguPB4GBhgKLAkzLAgBGigmLXgSdg
call fcn.004023c4
lea eax, [ebp - 0x20]
push eax
call fcn.0040420d
add esp, 0x28
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.00403c0c
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401264
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.0042fd2d
lea ecx, [esi - 0x10]
call fcn.00401264
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.00401264
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.0044e4c7
add ebp, 0x108
leave
ret