Function at 0x457040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4786ac
mov eax, dword fs:[0]
push eax
mov eax, 0x2a44
call fcn.00477f60
mov eax, dword [0x483014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2a50], ecx
mov esi, dword [ebp + 8]
push dword [esi + 0x16]
call dword [sym.imp.WS2_32.dll_htonl]
movzx ecx, word [esi + 0x7d]
mov ebx, dword [sym.imp.WS2_32.dll_htons]
push ecx
mov dword [ebp - 0x2a4c], eax
call ebx
movzx ecx, ax
movsx edi, cx
add esi, edi
movzx eax, word [esi + 0x7f]
push eax
call ebx
add esi, 0x81
add edi, esi
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x2a2c], edi
push dword [edi + 0xe]
call esi
push dword [edi + 0x12]
mov dword [ebp - 0x2a48], eax
call esi
push dword [edi]
mov dword [ebp - 0x2a34], eax
call esi
push dword [edi + 4]
mov dword [ebp - 0x2a44], eax
call esi
push dword [edi + 8]
mov dword [ebp - 0x2a40], eax
call esi
movzx ecx, word [edi + 0x16]
mov esi, eax
push ecx
call ebx
movzx eax, ax
lea ecx, [ebp - 0x2a14]
mov dword [ebp - 0x2a3c], eax
mov dword [ebp - 0x2a24], esi
mov dword [ebp - 0x2a20], 0
call dword [sym.imp.mfc140u.dll_Ordinal_296]
mov ecx, dword [ebp - 0x2a34]
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x2a28], edi
test ecx, ecx
je 0x4571fb
mov esi, dword [ebp - 0x2a2c]
add esi, 0xcb
mov dword [ebp - 0x2a2c], ecx
nop word [eax + eax]
push dword [esi + 1]
lea ebx, [esi - 0x13]
call dword [sym.imp.WS2_32.dll_htonl]
cmp byte [esi], 0
mov dword [ebp - 0x2a1c], eax
mov dword [ebp - 0x2a18], 0
je 0x457178
inc edi
mov dword [ebp - 0x2a28], edi
push ecx
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2a1c]
call fcn.0045de50
mov edi, eax
push ebx
lea ecx, [ebp - 0x2a38]
mov byte [ebp - 4], 1
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__10]
mov byte [ebp - 4], 2
push dword [edi]
movzx ecx, byte [esi]
push ecx
push dword [eax]
push dword [esi - 0x17]
call dword [sym.imp.WS2_32.dll_htonl]
push eax
lea eax, [ebp - 0x2a14]
push str._u__s__d__s_n
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
add esp, 0x18
lea ecx, [ebp - 0x2a38]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea ecx, [ebp - 0x2a30]
mov byte [ebp - 4], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov edi, dword [ebp - 0x2a28]
add esi, 0x52
sub dword [ebp - 0x2a2c], 1
jne 0x457150
push ecx
lea eax, [ebp - 0x2a30]
push eax
lea ecx, [ebp - 0x2a24]
call fcn.0045de50
mov byte [ebp - 4], 3
push dword [eax]
lea eax, [ebp - 0x2a14]
push dword [ebp - 0x2a3c]
push dword [ebp - 0x2a40]
push dword [ebp - 0x2a44]
push dword [ebp - 0x2a48]
push dword [ebp - 0x2a34]
push edi
push dword [ebp - 0x2a4c]
push 0x47bfa0
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__11]
add esp, 0x28
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2a30]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
push 0x100
lea eax, [ebp - 0x110]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push 0x100
lea eax, [ebp - 0x210]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x110]
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov eax, dword [ebp - 0x2a50]
push dword [eax + 4]
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x210]
push str._s_u_
push eax
call fcn.0045dc40
push 0x2800
lea eax, [ebp - 0x2a10]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
lea eax, [ebp - 0x2a14]
lea ecx, [ebp - 0x2a28]
push eax
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__13]
push 0
push 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2a28]
mov eax, dword [ebp - 0x2a28]
push 0
push 0
push dword [eax - 0xc]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push 0
push 0
call edi
mov ecx, dword [ebp - 0x2a28]
mov esi, eax
push 0
push 0
push esi
lea eax, [ebp - 0x2a10]
push eax
push dword [ecx - 0xc]
lea ecx, [ebp - 0x2a28]
call dword [sym.imp.mfc140u.dll_ATL::CSimpleStringT_wchar_t_1_::GetBuffer]
push eax
push 0
push 0
call edi
lea ecx, [ebp - 0x2a28]
mov byte [ebp + esi - 0x2a10], 0
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
lea eax, [ebp - 0x210]
push 0x47c040
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x457387
lea eax, [ebp - 0x2a10]
push eax
push 0x47c044
push esi
call fcn.0045dd90
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x10
lea ecx, [ebp - 0x2a14]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047724d
mov esp, ebp
pop ebp
ret 8