Function at 0x414f20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c58b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x350
push ebx
push esi
push edi
lea edi, [ebp - 0x35c]
mov ecx, 0xd4
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 0x32c], 0
lea ecx, [ebp - 0x14]
call fcn.004124d0
mov dword [ebp - 4], 1
mov word [ebp - 0x224], 0
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x222]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x230], 0x208
mov byte [ebp - 0x239], 0
push 0x20019
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
lea ecx, [ebp - 0x14]
call fcn.004156f0
test eax, eax
jne 0x4150f9
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str.CommonFilesDir
lea ecx, [ebp - 0x14]
call fcn.004157a0
test eax, eax
jne 0x4150f9
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00418b0c
test eax, eax
jbe 0x4150f9
mov esi, esp
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp esi, esp
call fcn.00418b0c
mov byte [ebp - 4], 2
push 0x20
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00415a10
add esp, 0xc
mov dword [ebp - 0x358], eax
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x35c], edx
mov byte [ebp - 4], 3
mov esi, esp
mov eax, dword [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x260]
call dword [0x41d208]
cmp esi, esp
call fcn.00418b0c
mov byte [ebp - 4], 2
mov esi, esp
lea ecx, [ebp - 0x350]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.00418b0c
mov esi, esp
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.00418b0c
push eax
call fcn.0040eaca
add esp, 4
movzx eax, al
test eax, eax
je 0x4150d8
mov esi, esp
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.00418b0c
mov esi, esp
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp esi, esp
call fcn.00418b0c
mov byte [ebp - 0x239], 1
lea ecx, [ebp - 0x14]
call fcn.00412550
mov byte [ebp - 4], 1
mov esi, esp
lea ecx, [ebp - 0x260]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp esi, esp
call fcn.00418b0c
movzx eax, byte [ebp - 0x239]
test eax, eax
jne 0x415182
mov esi, esp
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, esp
call fcn.00418b0c
test eax, eax
je 0x415146
mov esi, esp
push 0x41ec20
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00418b0c
mov word [ebp + eax*2 - 0x224], 0
jmp 0x415164
mov esi, esp
push 0x41ec20
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp esi, esp
call fcn.00418b0c
mov esi, esp
push str.Program_FilesCommon_Files
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.00418b0c
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00418b0c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x5c
je 0x4151ee
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.00418b0c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x2f
je 0x4151ee
mov esi, esp
push str.Thunder_NetworkTP_
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.00418b0c
jmp 0x41520c
mov esi, esp
push 0x41eb94
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.00418b0c
mov esi, esp
mov ecx, 0x4278ac
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
cmp esi, esp
call fcn.00418b0c
mov esi, esp
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.00418b0c
mov esi, esp
push 0x41dac0
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.00418b0c
mov esi, esp
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
cmp esi, esp
call fcn.00418b0c
mov ecx, dword [ebp - 0x32c]
or ecx, 1
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00412510
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4152c0]
call fcn.00418b2f
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x35c
cmp ebp, esp
call fcn.00418b0c
mov esp, ebp
pop ebp
ret