Function at 0x4ba013
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4e8915
call fcn.004d1ec0
sub esp, 0x2cc
mov eax, dword [0x52f220]
xor eax, ebp
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
test byte [0x535cd4], 1
push edi
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], ebx
mov edi, 0x535cb8
jne 0x4ba06f
or dword [0x535cd4], 1
mov ecx, edi
mov dword [ebp - 4], ebx
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_void_]
push 0x4eb68d
call fcn.004d1fcc
or dword [ebp - 4], 0xffffffff
pop ecx
cmp dword [0x535ccc], ebx
jne 0x4ba16c
lea eax, [ebp - 0x218]
push eax
push ebx
push ebx
push 0x23
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp eax, ebx
jge 0x4ba0a3
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push esi
xor esi, esi
inc esi
push esi
push 2
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
push str.Thunder_NetworkThunderLiveUD_
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x2d8]
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______cdecl_std::operator___wchar_t__struct_std::char_traits_wchar_t___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____wchar_t_const__]
push eax
call esi
pop ecx
pop ecx
push eax
call esi
pop ecx
pop ecx
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
cmp byte [ebp + 0xc], bl
mov byte [ebp - 4], 2
pop esi
je 0x4ba114
cmp dword [ebp - 0x21c], 8
mov eax, dword [ebp - 0x230]
jae 0x4ba10d
lea eax, [ebp - 0x230]
push eax
call fcn.004b9feb
pop ecx
push str.global.ini
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.00407691
add esp, 0xc
push eax
mov ecx, edi
mov byte [ebp - 4], 3
call dword [0x4ec4ec]
lea ecx, [ebp - 0x258]
mov byte [ebp - 4], 2
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_]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 1
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_]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov ecx, dword [ebp - 0x238]
push 0x535cb8
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_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x238]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop ebx
call fcn.004d1f17
leave
ret