Function at 0x420855
Capabilities:
Get common file path

Disassembly:
push 0x6a0
mov eax, 0x437763
call fcn.00435021
mov eax, dword [ebp + 8]
mov dword [ebp - 0x674], eax
call fcn.00430d6b
lea ecx, [ebp - 0x664]
mov edi, eax
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
xor ebx, ebx
mov esi, 0x206
push esi
lea eax, [ebp - 0x62a]
push ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x66c], 1
mov word [ebp - 0x62c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
push esi
lea eax, [ebp - 0x422]
push ebx
push eax
mov word [ebp - 0x424], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
call fcn.0041ed0a
movsx ax, al
mov word [ebp - 0x424], ax
lea eax, [ebp - 0x424]
push 0x43eb90
push eax
call dword [sym.imp.MSVCR80.dll_wcscat]
pop ecx
pop ecx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x668]
push eax
call fcn.00402b38
lea eax, [ebp - 0x668]
push eax
mov eax, dword [ebp - 0x674]
mov byte [ebp - 4], 1
call fcn.0041a0f6
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x668]
add eax, 0xfffffff0
call fcn.00401a71
cmp edi, 6
jne 0x420b18
push 0x4398dc
lea eax, [ebp - 0x668]
push eax
call fcn.00402b38
push ebx
push 0x1a
lea eax, [ebp - 0x62c]
push eax
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
cmp eax, ebx
mov dword [ebp - 0x66c], eax
jne 0x42096e
mov eax, dword [ebp - 0x668]
add eax, 0xfffffff0
call fcn.00401a71
jmp 0x420cf2
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x668]
push eax
call fcn.004077fc
push str.FlashGet_v3datAppsetting.cfg
lea eax, [ebp - 0x668]
push eax
call fcn.004077fc
mov eax, dword [ebp - 0x668]
cmp dword [eax - 4], 1
jle 0x4209b3
push dword [eax - 0xc]
lea eax, [ebp - 0x668]
push eax
call fcn.00402a7d
mov eax, dword [ebp - 0x668]
push eax
lea ecx, [ebp - 0x6ac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 3
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.UserPath
lea ecx, [ebp - 0x690]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.FlashGet3_Setting_Value
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x690]
push eax
lea eax, [ebp - 0x648]
push eax
lea edx, [ebp - 0x6ac]
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 5
call fcn.0041c005
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 7
call dword [sym.imp.MSVCP80.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 - 0x690]
mov byte [ebp - 4], 8
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x634], ebx
jne 0x420a63
mov dword [ebp - 0x66c], ebx
jmp 0x420b03
push ebx
lea ecx, [ebp - 0x648]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx esi, word [eax]
call fcn.0041ed0a
movsx eax, al
cmp esi, eax
je 0x420abd
push ebx
lea ecx, [ebp - 0x648]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx esi, word [eax]
call fcn.0041ed0a
movsx eax, al
sub eax, 0x20
cmp esi, eax
je 0x420abd
push ebx
lea ecx, [ebp - 0x648]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx esi, word [eax]
call fcn.0041ed0a
movsx eax, al
add eax, 0x20
cmp esi, eax
jne 0x420a58
cmp dword [ebp - 0x630], 8
mov eax, dword [ebp - 0x644]
jae 0x420ad2
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00402b38
lea eax, [ebp - 0x670]
push eax
mov eax, dword [ebp - 0x674]
mov byte [ebp - 4], 9
call fcn.0041a0f6
mov eax, dword [ebp - 0x670]
add eax, 0xfffffff0
call fcn.00401a71
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
jmp 0x42095b
push esi
lea eax, [ebp - 0x21a]
push ebx
push eax
mov word [ebp - 0x21c], bx
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x668]
push eax
lea eax, [ebp - 0x21c]
push eax
push str.Path
push str.SOFTWAREFlashGet_NetworkFlashGet_3
push 0x80000002
mov dword [ebp - 0x668], 0x208
call fcn.0041d11f
lea eax, [ebp - 0x21c]
add esp, 0x14
push eax
call dword [sym.imp.MSVCR80.dll_wcslen]
test eax, eax
pop ecx
jne 0x420b7c
mov dword [ebp - 0x66c], ebx
jmp 0x420cf2
push str.datAppsetting.cfg
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x690]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x690]
push eax
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 0xa
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push str.UserPath
lea ecx, [ebp - 0x6ac]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push str.FlashGet3_Setting_Value
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 0xb
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x6ac]
push eax
lea eax, [ebp - 0x648]
push eax
lea edx, [ebp - 0x690]
lea ecx, [ebp - 0x664]
mov byte [ebp - 4], 0xc
call fcn.0041c005
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 0xe
call dword [sym.imp.MSVCP80.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 - 0x6ac]
mov byte [ebp - 4], 0xf
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [ebp - 0x634], ebx
jne 0x420c43
mov dword [ebp - 0x66c], ebx
jmp 0x420ce3
push ebx
lea ecx, [ebp - 0x648]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::at_unsigned_int_]
movzx esi, word [eax]
call fcn.0041ed0a
movsx eax, al
cmp esi, eax
je 0x420c9d
push ebx
lea ecx, [ebp - 0x648]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx esi, word [eax]
call fcn.0041ed0a
movsx eax, al
sub eax, 0x20
cmp esi, eax
je 0x420c9d
push ebx
lea ecx, [ebp - 0x648]
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
movzx esi, word [eax]
call fcn.0041ed0a
movsx eax, al
add eax, 0x20
cmp esi, eax
jne 0x420c38
cmp dword [ebp - 0x630], 8
mov eax, dword [ebp - 0x644]
jae 0x420cb2
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x670]
push eax
call fcn.00402b38
lea eax, [ebp - 0x670]
push eax
mov eax, dword [ebp - 0x674]
mov byte [ebp - 4], 0x10
call fcn.0041a0f6
mov eax, dword [ebp - 0x670]
add eax, 0xfffffff0
call fcn.00401a71
lea ecx, [ebp - 0x648]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP80.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 - 0x664]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, dword [ebp - 0x66c]
call fcn.004350a4
ret