Function at 0x415850
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cf3b
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.00412e00
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.00415fd0
test eax, eax
jne 0x415a29
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str.CommonFilesDir
lea ecx, [ebp - 0x14]
call fcn.00416080
test eax, eax
jne 0x415a29
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041944c
test eax, eax
jbe 0x415a29
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.0041944c
mov byte [ebp - 4], 2
push 0x20
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.004162f0
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 [0x41e210]
cmp esi, esp
call fcn.0041944c
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.0041944c
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.0041944c
push eax
call fcn.0040f3f2
add esp, 4
movzx eax, al
test eax, eax
je 0x415a08
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.0041944c
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.0041944c
mov byte [ebp - 0x239], 1
lea ecx, [ebp - 0x14]
call fcn.00412e80
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.0041944c
movzx eax, byte [ebp - 0x239]
test eax, eax
jne 0x415ab2
mov esi, esp
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, esp
call fcn.0041944c
test eax, eax
je 0x415a76
mov esi, esp
push 0x41fd08
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041944c
mov word [ebp + eax*2 - 0x224], 0
jmp 0x415a94
mov esi, esp
push 0x41fd08
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp esi, esp
call fcn.0041944c
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.0041944c
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041944c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x5c
je 0x415b1e
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041944c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x2f
je 0x415b1e
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.0041944c
jmp 0x415b3c
mov esi, esp
push 0x41fc7c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.0041944c
mov esi, esp
mov ecx, 0x428a9c
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.0041944c
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.0041944c
mov esi, esp
push 0x41eb98
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.0041944c
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.0041944c
mov ecx, dword [ebp - 0x32c]
or ecx, 1
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00412e40
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x415bf0]
call fcn.0041946f
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.0041944c
mov esp, ebp
pop ebp
ret