Function at 0x442dc0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8418
mov eax, dword fs:[0]
push eax
sub esp, 0x4d8
mov eax, dword [0x4fbf50]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x338]
push ecx
mov dword [ebp - 0x330], eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
xor edi, edi
test eax, eax
js 0x442e55
lea edx, [ebp - 0x334]
push edx
push 0x1c
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x442e47
mov ecx, dword [ebp - 0x334]
lea eax, [ebp - 0x21c]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov eax, dword [ebp - 0x338]
mov ecx, dword [ebp - 0x334]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x338]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov word [ebp - 0x238], ax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x224], 7
mov dword [ebp - 0x228], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x442e77
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x21c]
push ecx
lea ecx, [ebp - 0x238]
call fcn.00403c20
push 0x28
push str.TheWorld6User_DataDefaultPreferences
lea ecx, [ebp - 0x238]
mov dword [ebp - 4], edi
call fcn.0040b420
push edi
lea ecx, [ebp - 0x36c]
call fcn.004c03e0
lea ecx, [ebp - 0x32c]
mov byte [ebp - 4], 1
call fcn.004c3130
lea edx, [ebp - 0x4e4]
push edx
mov byte [ebp - 4], 2
call fcn.00445740
mov byte [ebp - 4], 3
cmp dword [ebp - 0x224], 8
mov ecx, dword [ebp - 0x238]
jae 0x442ef2
lea ecx, [ebp - 0x238]
push 0x21
lea esi, [ebp - 0x4d4]
call fcn.0040b850
push edi
test eax, eax
jne 0x442f1e
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 4]
push 2
lea ecx, [ebp + ecx - 0x4e4]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x442f35
mov ecx, dword [ebp - 0x4e4]
mov ecx, dword [ecx + 4]
push edi
lea ecx, [ebp + ecx - 0x4e4]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
push 1
lea edx, [ebp - 0x36c]
push edx
lea eax, [ebp - 0x4e4]
push eax
lea ecx, [ebp - 0x32c]
call fcn.004c4f10
test al, al
je 0x443236
push edi
lea ecx, [ebp - 0x35c]
call fcn.004c03e0
mov ebx, 4
push ebx
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.004bf330
push eax
push str.restore_on_startup
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 5
call fcn.004c17f0
mov ecx, eax
call fcn.004c13e0
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.004c04e0
push 1
lea ecx, [ebp - 0x34c]
call fcn.004bf390
push eax
push str.restore_on_startup_migrated
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 6
call fcn.004c17f0
mov ecx, eax
call fcn.004c13e0
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.004c04e0
push 6
push str.GB2312
lea ecx, [ebp - 0x388]
mov dword [ebp - 0x374], 0xf
mov dword [ebp - 0x378], edi
mov byte [ebp - 0x388], 0
call fcn.00403920
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x330]
push ecx
lea ecx, [ebp - 0x388]
lea ebx, [ebp - 0x254]
call fcn.0040d2a0
add esp, 4
mov ebx, 8
push eax
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.004bfc10
lea edx, [ebp - 0x34c]
push edx
push str.urls_to_restore_on_startup
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 9
call fcn.004c17f0
mov ecx, eax
call fcn.004c1770
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], bl
call fcn.004c04e0
mov edi, 0x10
cmp dword [ebp - 0x240], edi
jb 0x443082
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 4
mov dword [ebp - 0x240], 0xf
mov dword [ebp - 0x244], 0
mov byte [ebp - 0x254], 0
cmp dword [ebp - 0x374], edi
jb 0x4430b9
mov ecx, dword [ebp - 0x388]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea edx, [ebp - 0x35c]
push edx
lea ecx, [ebp - 0x34c]
call fcn.004c1280
push eax
push str.session
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 0xa
call fcn.004c17f0
mov ecx, eax
call fcn.004c13e0
lea ecx, [ebp - 0x34c]
mov byte [ebp - 4], 4
call fcn.004c04e0
lea ecx, [ebp - 0x2ac]
call fcn.004be7d0
lea eax, [ebp - 0x434]
push eax
mov byte [ebp - 4], 0xb
call fcn.00445870
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x238]
cmp dword [ebp - 0x224], ebx
jae 0x443129
lea ecx, [ebp - 0x238]
push 2
lea esi, [ebp - 0x430]
call fcn.0040b850
push 0
test eax, eax
jne 0x443156
mov ecx, dword [ebp - 0x434]
mov ecx, dword [ecx + 4]
push 2
lea ecx, [ebp + ecx - 0x434]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
jmp 0x44316e
mov edx, dword [ebp - 0x434]
mov ecx, dword [edx + 4]
push 0
lea ecx, [ebp + ecx - 0x434]
call dword [sym.imp.MSVCP100.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x254]
push ecx
lea ecx, [ebp - 0x2ac]
call fcn.004bf230
push eax
lea edx, [ebp - 0x434]
push edx
mov byte [ebp - 4], 0xd
call fcn.004468b0
add esp, 8
mov byte [ebp - 4], 0xc
cmp dword [ebp - 0x240], edi
jb 0x4431b7
mov eax, dword [ebp - 0x254]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
lea ecx, [ebp - 0x434]
push ecx
call fcn.0040a800
mov eax, dword [ebp - 0x434]
mov ecx, dword [eax + 4]
lea edx, [ebp - 0x3d4]
mov dword [ebp - 0x330], edx
mov dword [ebp + ecx - method.std::basic_ofstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 0xe
call fcn.0040a870
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x434]
mov ecx, dword [sym.imp.MSVCP100.dll_const_std::basic_ostream_char__struct_std::char_traits_char__::vftable]
mov eax, dword [edx + 4]
mov dword [ebp + eax - 0x434], ecx
lea ecx, [ebp - 0x3d4]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x2ac]
mov byte [ebp - 4], 4
call fcn.00442af0
lea ecx, [ebp - 0x35c]
mov byte [ebp - 4], 3
call fcn.004c04e0
lea edx, [ebp - 0x4e4]
push edx
call fcn.00445800
mov ecx, dword [ebp - 0x4e4]
mov edx, dword [ecx + 4]
lea eax, [ebp - 0x47c]
mov dword [ebp - 0x330], eax
mov dword [ebp + edx - method.std::basic_ifstream_char__struct_std::char_traits_char__.virtual_0], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
lea ecx, [ebp - 0x4d4]
mov byte [ebp - 4], 0xf
call fcn.0040a870
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4e4]
mov ecx, dword [eax + 4]
mov edx, dword [sym.imp.MSVCP100.dll_const_std::basic_istream_char__struct_std::char_traits_char__::vftable]
mov dword [ebp + ecx - 0x4e4], edx
lea ecx, [ebp - 0x47c]
call dword [sym.imp.MSVCP100.dll_public_virtual:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::destructor_void_]
lea ecx, [ebp - 0x32c]
call fcn.004432f0
lea ecx, [ebp - 0x36c]
mov byte [ebp - 4], 0
call fcn.004c04e0
cmp dword [ebp - 0x224], 8
jb 0x4432ca
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004b7299
mov esp, ebp
pop ebp
ret 4