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

Disassembly:
push ebp
sub esp, 0x104
lea ebp, [esp - 4]
mov eax, dword [0x495180]
xor eax, ebp
mov dword [ebp + 0x104], eax
push 0x30
mov eax, 0x468d4f
call fcn.0044d0e9
mov edi, dword [ebp + 0x110]
mov ebx, dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xor esi, esi
lea eax, [ebp]
push eax
push esi
push esi
push 0x23
push esi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], esi
call ebx
test eax, eax
jl 0x4052d2
call fcn.0042b084
push eax
lea ecx, [ebp - 0x18]
call fcn.004075fa
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 1
call fcn.004040bc
push 0x472498
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ATMpfAUzOSQFIDkHBh4mcggZBx4DCw8QBR0PDgcyciIBM3thBQglIBogOTgAMCV9ATMpJi49d3c
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 2
call fcn.00403c1f
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.00401264
mov esi, dword [ebp - 0x18]
push esi
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Kyc6OysncgYAIxMsBRlyfgUYJX4AGT0gACNzPCsnOjsrLXd3
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 3
call fcn.00403c1f
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 0x405349
call fcn.0042b084
push eax
lea ecx, [ebp - 0x18]
call fcn.004075fa
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.004040bc
mov esi, dword [ebp - 0x18]
push esi
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ATMpfAUzOSQFIDklByMcYQsIJnwsLQ8wARspDgcyB3IIGHswBTM5JAUgOTgAMxx5
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 5
call fcn.00403c1f
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 0x1c
push esi
call ebx
test eax, eax
jl 0x4054e6
call fcn.0042b084
push eax
lea ecx, [ebp - 0x18]
call fcn.004075fa
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.004040bc
push esi
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ATMpfAUzOSQFIDklGh4mcggZe2EFCCUgBRt6Cw0ZD34LCXoeACIlLikwOTgAMCV9ATMpJi49d3c
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, edi
call fcn.00403861
mov ecx, dword [ebp - 0x20]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x405454
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Kyc6OysiEw0AGSE4AC0TJhodOjsrJyV3
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov byte [ebp - 4], 7
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Kyc6OysiEw0AGSE4ACc6OysnJXc
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 8
call fcn.00403c1f
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 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Kyc6OysncgYFICUFATBOAgjHzoBMxMNAB57PCsnOjsrLXd3
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
mov byte [ebp - 4], 9
jmp 0x4054bb
push 0
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ATMpfAUzOSQFIDklGh4mcggZe2EFCCUgBRt6Cw0ZD34LCS4wBTM5JAUgOTgAMxx5
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, edi
call fcn.00403861
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x4054cf
push dword [ebp - 0x18]
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Cx4HOiwLHzAFGRsMAw4hfgsOCyYpLSEvCTMTOQl5fi0IGHoaCQglEwgzKQYNCQxlCw4HIywtHy0FHi0LBwkccwseBzosCx9zLnkpdw
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
mov byte [ebp - 4], 0xa
push dword [eax]
mov ecx, edi
call fcn.00403c1f
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 0x40555b
call fcn.0042b084
push eax
lea ecx, [ebp - 0x18]
call fcn.004075fa
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xb
call fcn.004040bc
mov esi, dword [ebp - 0x18]
push esi
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ATMpfAUzOSQFIDklGh4mcggZe2EFCCUgGiA9OAAwJX0BMyl8BT13dw
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0xc
call fcn.00403c1f
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401264
lea ecx, [esi - 0x10]
mov byte [ebp - 4], 0
call fcn.00401264
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.Cx4HOiwLHzAFGRsMAw4hfgsOCyYpLTkgLzAHBgYSJSEBHgt_BQsLPQASeggHMyZyCB4Hfxojf38BEil3
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
mov eax, dword [eax]
mov ecx, dword [edi]
add esp, 0x24
push eax
push ecx
call fcn.0044e59e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x4055f5
lea eax, [ebp - 0x18]
push eax
call fcn.004046c7
pop ecx
push dword [ebp - 0x18]
mov byte [ebp - 4], 0xd
push 3
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
push str.ATMpfAUzOSQFIDklByRKwkOA3waCTkkBSA5OAAwJX0
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, edi
mov byte [ebp - 4], 0xe
call fcn.00403c1f
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
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x1c], esp
mov edi, str.Kyc6OysncgcOCCVABk9IAAjczwrJzo7Ky13dw
push edi
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
mov eax, dword [eax]
mov ecx, dword [ebp - 0x24]
mov ecx, dword [ecx]
add esp, 0x24
push eax
push ecx
call fcn.0044e59e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x14]
cmp eax, 0xffffffff
setg bl
add ecx, 0xfffffff0
call fcn.00401264
test bl, bl
je 0x4057e3
call fcn.0042b084
push eax
lea ecx, [ebp - 0x1c]
call fcn.004075fa
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 0x4057d8
call fcn.0042b084
push eax
lea ecx, [ebp - 0x18]
call fcn.004075fa
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.004040bc
push 4
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Cx4HOiwLHzAFGRsMAw4hfgsOBywGLSEFCDM9Kw09KT0OMAc6CQspIwg9AwYHCzlhDS05HgsLAz0IPSkOAzIyIgk9LSIpPQcGCTMLOgACAwILDgsmLBsPMAESPQwHMCEhCBkLfy49d3c
call fcn.004023a5
lea eax, [ebp - 0x14]
push eax
call fcn.004042ec
add esp, 0x24
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x11
call fcn.00403e79
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x10
call fcn.00401264
lea ecx, [ebp - 0x3c]
call fcn.0042e9e6
push ebx
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.Kyc6OysnCCETDTo7Kycldw
mov byte [ebp - 4], 0x12
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 4], 0x13
call fcn.00404065
add esp, 0xc
push dword [eax]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x14
call fcn.0042ea5e
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 0x40578b
lea ecx, [ebp - 0x3c]
call fcn.0042e6ea
mov esi, eax
mov eax, dword [ebp - 0x3c]
push 0x10
lea ecx, [ebp - 0x3c]
call dword [eax + 0x38]
cmp eax, ebx
je 0x405735
lea ecx, [ebp - 0x3c]
call fcn.0042e9ab
cmp eax, ebx
jne 0x405735
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
call fcn.0042ec98
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x18]
push eax
mov byte [ebp - 4], 0x15
call fcn.00403e79
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0x12
call fcn.00401264
mov esi, dword [ebp - 0x18]
push esi
push 2
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push edi
call fcn.004023a5
lea eax, [ebp - 0x20]
push eax
call fcn.004042ec
add esp, 0x24
push dword [eax]
mov ecx, dword [ebp - 0x24]
mov byte [ebp - 4], 0x16
call fcn.00403c1f
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
call fcn.00401264
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0x10
call fcn.0042ea0c
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.0044d0a7
add ebp, 0x108
leave
ret