Function at 0x4121a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41877b
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.0040f750
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.00412970
test eax, eax
jne 0x412379
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str.CommonFilesDir
lea ecx, [ebp - 0x14]
call fcn.00412a20
test eax, eax
jne 0x412379
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041512c
test eax, eax
jbe 0x412379
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.0041512c
mov byte [ebp - 4], 2
push 0x20
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00412c90
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 [0x41a190]
cmp esi, esp
call fcn.0041512c
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.0041512c
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.0041512c
push eax
call fcn.0040c478
add esp, 4
movzx eax, al
test eax, eax
je 0x412358
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.0041512c
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.0041512c
mov byte [ebp - 0x239], 1
lea ecx, [ebp - 0x14]
call fcn.0040f7d0
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.0041512c
movzx eax, byte [ebp - 0x239]
test eax, eax
jne 0x412402
mov esi, esp
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, esp
call fcn.0041512c
test eax, eax
je 0x4123c6
mov esi, esp
push 0x41b928
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041512c
mov word [ebp + eax*2 - 0x224], 0
jmp 0x4123e4
mov esi, esp
push 0x41b928
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp esi, esp
call fcn.0041512c
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.0041512c
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041512c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x5c
je 0x41246e
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041512c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x2f
je 0x41246e
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.0041512c
jmp 0x41248c
mov esi, esp
push 0x41b89c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.0041512c
mov esi, esp
mov ecx, 0x423810
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.0041512c
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.0041512c
mov esi, esp
push 0x41a960
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.0041512c
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.0041512c
mov ecx, dword [ebp - 0x32c]
or ecx, 1
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.0040f790
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x412540]
call fcn.0041514f
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.0041512c
mov esp, ebp
pop ebp
ret