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

Disassembly:
push ebp
sub esp, 0x25c
lea ebp, [esp - 4]
mov eax, dword [0x571268]
xor eax, ebp
mov dword [ebp + 0x25c], eax
push 0xb4
mov eax, 0x506fce
call fcn.004ec730
mov eax, dword [ebp + 0x268]
mov dword [ebp - 0x38], eax
call fcn.00411dd9
mov al, byte [eax]
xor ebx, ebx
test al, al
jne 0x40c666
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
lea eax, [ebp - 0xb8]
push str.CRemoteUpdater::IsFolderExist___start
push eax
mov dword [ebp - 4], ebx
call fcn.004058d5
pop ecx
pop ecx
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040574e
lea edi, [ebp + 0x1c]
mov byte [ebp - 4], 1
call fcn.00405549
push ebx
push 1
mov esi, edi
call fcn.0040754f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc0]
call fcn.00405a60
xor eax, eax
push 0x206
mov word [ebp + 0x54], ax
xor edi, edi
lea eax, [ebp + 0x56]
push edi
push eax
call fcn.004ef370
add esp, 0xc
push edi
push 0x26
lea eax, [ebp + 0x54]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40c9c7
lea eax, [ebp + 0x54]
push eax
lea esi, [ebp]
call fcn.004076aa
push 9
pop ebx
push 0x524c94
mov eax, esi
push eax
mov dword [ebp - 4], ebx
call fcn.0040512d
mov eax, dword [ebp - 0x38]
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00404feb
call fcn.00411dd9
cmp byte [eax], 0
jne 0x40c782
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
mov eax, esi
push eax
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 0xa
call fcn.00405173
pop ecx
pop ecx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040574e
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0xb
call fcn.00405549
push 0
push 1
mov esi, edi
call fcn.0040754f
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], bl
call fcn.00405a60
xor ebx, ebx
xor eax, eax
mov dword [ebp + 0x34], 7
mov dword [ebp + 0x30], ebx
mov word [ebp + 0x20], ax
mov byte [ebp - 4], 0x13
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x40c5d0
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004653be
test al, al
je 0x40c9ad
call fcn.00411dd9
cmp byte [eax], 0
jne 0x40c89c
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
lea eax, [ebp - 0xb8]
push str.CRemoteUpdater::IsFolderExist___true
push eax
mov byte [ebp - 4], 0x14
call fcn.004058d5
pop ecx
pop ecx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040574e
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x15
call fcn.00405549
push ebx
push 1
mov esi, edi
call fcn.0040754f
lea eax, [ebp - 0xc0]
mov byte [ebp - 4], 0x13
call fcn.00405a60
push 0
push 1
lea esi, [ebp + 0x1c]
call fcn.0040754f
push 0
push 1
lea esi, [ebp]
call fcn.0040754f
mov al, 1
jmp 0x40ca32
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], 2
call fcn.00405430
mov byte [ebp - 4], 3
call fcn.00411dd9
lea ecx, [ebp - 0x34]
call fcn.00405346
mov byte [ebp - 4], 4
cmp dword [eax + 0x18], 8
jb 0x40c699
mov esi, dword [eax + 4]
jmp 0x40c69c
lea esi, [eax + 4]
lea eax, [ebp - 0xb8]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push esi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
push str.CRemoteUpdater::IsFolderExist___start
push eax
call fcn.004058d5
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.0040754f
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x40c733
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xb6
push str..RemoteUpdater.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push ebx
push 1
lea esi, [ebp - 0x34]
call fcn.0040754f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 2
call fcn.0040539b
or dword [ebp - 4], 0xffffffff
jmp 0x40c4ef
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 0xc
call fcn.00405430
mov byte [ebp - 4], 0xd
call fcn.00411dd9
lea ecx, [ebp - 0x34]
call fcn.00405346
mov byte [ebp - 4], 0xe
cmp dword [eax + 0x18], 8
jb 0x40c7b2
mov esi, dword [eax + 4]
jmp 0x40c7b5
lea esi, [eax + 4]
lea eax, [ebp - 0xb8]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push esi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
lea ecx, [ebp]
push ecx
push eax
call fcn.00405173
pop ecx
pop ecx
push edi
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0xd
call fcn.0040754f
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xf
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x40c84b
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xbc
push str..RemoteUpdater.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x10
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push edi
push 1
lea esi, [ebp - 0x34]
call fcn.0040754f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xd
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0xc
call fcn.0040539b
mov dword [ebp - 4], ebx
jmp 0x40c5ae
lea eax, [ebp - 0xb8]
push eax
mov byte [ebp - 4], 0x16
call fcn.00405430
mov byte [ebp - 4], 0x17
call fcn.00411dd9
lea ecx, [ebp - 0x34]
call fcn.00405346
mov byte [ebp - 4], 0x18
cmp dword [eax + 0x18], 8
jb 0x40c8cc
mov esi, dword [eax + 4]
jmp 0x40c8cf
lea esi, [eax + 4]
lea eax, [ebp - 0xb8]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push esi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
push str.CRemoteUpdater::IsFolderExist___true
push eax
call fcn.004058d5
pop ecx
pop ecx
push ebx
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0x17
call fcn.0040754f
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x19
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x40c966
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xc1
push str..RemoteUpdater.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x1a
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push ebx
push 1
lea esi, [ebp - 0x34]
call fcn.0040754f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x17
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0x16
call fcn.0040539b
jmp 0x40c647
push ebx
push 1
lea esi, [ebp + 0x1c]
call fcn.0040754f
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp]
call fcn.0040754f
call fcn.00411dd9
cmp byte [eax], 0
jne 0x40ca57
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
lea eax, [ebp - 0xb8]
push str.CRemoteUpdater::IsFolderExist___false
push eax
mov dword [ebp - 4], 0x1d
call fcn.004058d5
pop ecx
pop ecx
lea eax, [ebp + 0x38]
push eax
lea ecx, [ebp - 0xc0]
call fcn.0040574e
lea edi, [ebp + 0x38]
mov byte [ebp - 4], 0x1e
call fcn.00405549
push 0
push 1
mov esi, edi
call fcn.0040754f
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0xc0]
call fcn.00405a60
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x25c]
xor ecx, ebp
call fcn.004e6e1c
add ebp, 0x260
leave
ret 4
lea eax, [ebp - 0xb8]
push eax
mov dword [ebp - 4], 0x1f
call fcn.00405430
mov byte [ebp - 4], 0x20
call fcn.00411dd9
lea ecx, [ebp - 0x34]
call fcn.00405346
mov byte [ebp - 4], 0x21
cmp dword [eax + 0x18], 8
jb 0x40ca8a
mov esi, dword [eax + 4]
jmp 0x40ca8d
lea esi, [eax + 4]
lea eax, [ebp - 0xb8]
push 0x5251c8
push eax
call fcn.004058d5
pop ecx
pop ecx
push esi
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0x5251c0
push eax
call fcn.004058d5
pop ecx
pop ecx
push str.CRemoteUpdater::IsFolderExist___false
push eax
call fcn.004058d5
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x34]
mov byte [ebp - 4], 0x20
call fcn.0040754f
lea eax, [ebp - 0x18]
push eax
call sub.log4cplusU.dll_public:_static_class_log4cplus::Logger___cdecl_log4cplus::Logger::getRoot_void_
pop ecx
mov esi, 0x2710
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x22
call sub.log4cplusU.dll_public:_bool___thiscall_log4cplus::Logger::isEnabledFor_int_const
test al, al
je 0x40cb26
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xc5
push str..RemoteUpdater.cpp
push eax
push esi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x23
call sub.log4cplusU.dll_public:_void___thiscall_log4cplus::Logger::forcedLog_int__class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___char_const___int_const
push 0
push 1
lea esi, [ebp - 0x34]
call fcn.0040754f
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0x20
call sub.log4cplusU.dll_public_virtual:_void___thiscall_log4cplus::Logger::destructor_void_
lea eax, [ebp - 0xb8]
mov byte [ebp - 4], 0x1f
call fcn.0040539b
jmp 0x40ca30