Function at 0x42a7ed
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov eax, 0x465c27
call fcn.00461c40
sub esp, 0x358
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x24], edi
push dword [edi + 0xe88]
call fcn.004613f0
test eax, eax
jne 0x42ab0b
push 0x208
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, 0x104
mov dword [ebp - 0x14], eax
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov dword [ebp - 0x18], eax
pop ecx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [edi + 0xe88]
call fcn.00461710
xor ebx, ebx
cmp eax, ebx
jne 0x42ab16
push dword [ebp - 0x14]
call dword [sym.imp.MSVCRT.dll_wcslen]
cmp eax, 1
pop ecx
jbe 0x42ab16
push dword [ebp - 0x18]
call sub.MSVCRT.dll_strlen
cmp eax, 1
pop ecx
jbe 0x42ab16
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x15b]
mov byte [ebp - 0x15c], bl
push ebx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [ebp - 0x15c]
push esi
push eax
push 0xffffffffffffffff
push dword [ebp - 0x14]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x362]
mov word [ebp - 0x364], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x364]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
lea eax, [ebp - 0x364]
push str.ArcSoft
push eax
call edi
lea eax, [ebp - 0x364]
push str.IPMHtml_
push eax
call edi
lea eax, [ebp - 0x364]
push 0x481794
push eax
call edi
add esp, 0x18
lea eax, [ebp - 0x364]
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42a92d
mov ecx, dword [ebp - 0x24]
call fcn.0042ab25
jmp 0x42a934
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.MSVCRT.dll__wfopen]
lea eax, [ebp - 0x364]
push 0x481790
push eax
call esi
pop ecx
mov dword [ebp - 0x20], eax
mov al, byte [ebp - 0xd]
pop ecx
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
mov byte [ebp - 0x38], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov edi, str.grace11111111_gmail.com
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov al, byte [ebp - 0xd]
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
mov byte [ebp - 0x58], al
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
lea eax, [ebp - 0x15c]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x15c]
push eax
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebp - 0x30]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
call dword [sym.imp.MSVCRT.dll_fgetwc]
pop ecx
mov byte [ebp - 0x28], al
push dword [ebp - 0x28]
lea ecx, [ebp - 0x48]
push 1
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::append_unsigned_int__char_]
cmp byte [ebp - 0x28], 0xff
jne 0x42a9c3
xor edi, edi
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x42a9f2
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
cmp edi, eax
je 0x42aa22
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::replace_unsigned_int__unsigned_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
jmp 0x42a9e6
mov edi, str.123_1234_1234_123
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov edi, dword [ebp - 0x18]
push edi
call sub.MSVCRT.dll_strlen
pop ecx
push eax
push edi
lea ecx, [ebp - 0x58]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::assign_char_const___unsigned_int_]
mov eax, dword [ebp - 0x30]
xor edi, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x42aa62
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push dword [ebp - 0x30]
lea ecx, [ebp - 0x48]
push edi
push eax
call dword [sym.imp.MSVCP60.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov edi, eax
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
mov eax, dword [eax]
cmp edi, eax
je 0x42aa92
push eax
lea eax, [ebp - 0x58]
push ebx
push eax
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x48]
push edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::replace_unsigned_int__unsigned_int__class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___unsigned_int__unsigned_int_]
jmp 0x42aa56
push dword [ebp - 0x20]
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
call edi
lea eax, [ebp - 0x364]
mov dword [esp], 0x481760
push eax
call esi
mov esi, eax
mov eax, dword [ebp - 0x44]
pop ecx
cmp eax, ebx
pop ecx
jne 0x42aabd
mov eax, dword [sym.imp.MSVCP60.dll_char_const__private:_static_char_const____cdecl_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Nullstr_void_::_2::_C]
push esi
push dword [ebp - 0x40]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push esi
call edi
add esp, 0x14
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
push 1
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x48]
call dword [sym.imp.MSVCP60.dll_private:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool_]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0xe90], 2
jmp 0x42ab16
mov ecx, dword [edi + 0x34]
push 0
call dword [sym.imp.Miracle.dll_Ordinal_235]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret