Function at 0x40cd6c
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, 0x506e9b
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 0x40cf87
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
lea eax, [ebp - 0xb8]
push str.CRemoteUpdater::IsConfNameExist___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 0x40d2e8
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
push str.Configuration.xml
mov eax, esi
push eax
call fcn.0040512d
call fcn.00411dd9
cmp byte [eax], 0
jne 0x40d0a3
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 0x40cef1
lea eax, [ebp + 4]
push eax
lea eax, [ebp + 0x1c]
push eax
call fcn.004653be
test al, al
je 0x40d2ce
call fcn.00411dd9
cmp byte [eax], 0
jne 0x40d1bd
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
lea eax, [ebp - 0xb8]
push str.CRemoteUpdater::IsConfNameExist___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 0x40d353
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 0x40cfba
mov esi, dword [eax + 4]
jmp 0x40cfbd
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::IsConfNameExist___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 0x40d054
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xd3
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 0x40ce03
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 0x40d0d3
mov esi, dword [eax + 4]
jmp 0x40d0d6
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 0x40d16c
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xda
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 0x40cecf
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 0x40d1ed
mov esi, dword [eax + 4]
jmp 0x40d1f0
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::IsConfNameExist___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 0x40d287
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xde
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 0x40cf68
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 0x40d378
lea eax, [ebp - 0xc0]
push eax
call fcn.004071c6
lea eax, [ebp - 0xb8]
push str.CRemoteUpdater::IsConfNameExist___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 0x40d3ab
mov esi, dword [eax + 4]
jmp 0x40d3ae
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::IsConfNameExist___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 0x40d447
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040532c
push 0xe2
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 0x40d351