Function at 0x415510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cbfb
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.00412ac0
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.00415ce0
test eax, eax
jne 0x4156e9
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0x224]
push ecx
push str.CommonFilesDir
lea ecx, [ebp - 0x14]
call fcn.00415d90
test eax, eax
jne 0x4156e9
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041910c
test eax, eax
jbe 0x4156e9
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.0041910c
mov byte [ebp - 4], 2
push 0x20
lea eax, [ebp - 0x260]
push eax
lea ecx, [ebp - 0x350]
push ecx
call fcn.00416000
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.0041910c
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.0041910c
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.0041910c
push eax
call fcn.0040f0b0
add esp, 4
movzx eax, al
test eax, eax
je 0x4156c8
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.0041910c
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.0041910c
mov byte [ebp - 0x239], 1
lea ecx, [ebp - 0x14]
call fcn.00412b40
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.0041910c
movzx eax, byte [ebp - 0x239]
test eax, eax
jne 0x415772
mov esi, esp
push 0x104
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp esi, esp
call fcn.0041910c
test eax, eax
je 0x415736
mov esi, esp
push 0x41fcf8
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041910c
mov word [ebp + eax*2 - 0x224], 0
jmp 0x415754
mov esi, esp
push 0x41fcf8
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
cmp esi, esp
call fcn.0041910c
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.0041910c
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041910c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x5c
je 0x4157de
mov esi, esp
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcslen]
add esp, 4
cmp esi, esp
call fcn.0041910c
movzx ecx, word [ebp + eax*2 - 0x226]
cmp ecx, 0x2f
je 0x4157de
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.0041910c
jmp 0x4157fc
mov esi, esp
push 0x41fc6c
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.0041910c
mov esi, esp
mov ecx, 0x42889c
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.0041910c
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.0041910c
mov esi, esp
push 0x41eb88
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
cmp esi, esp
call fcn.0041910c
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.0041910c
mov ecx, dword [ebp - 0x32c]
or ecx, 1
mov dword [ebp - 0x32c], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00412b00
mov eax, dword [ebp + 8]
push edx
mov ecx, ebp
push eax
lea edx, [0x4158b0]
call fcn.0041912f
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.0041910c
mov esp, ebp
pop ebp
ret