Function at 0x41a29a
Capabilities:
Get common file path
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1b80
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call fcn.00631510
xor edi, edi
pop ecx
cmp eax, 1
jae 0x41a2f9
lea eax, [ebp - 0x1b68]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x41a2ec
push str._n_Failed_to_get_current_users_appdata_folder
call fcn.00449974
pop ecx
xor eax, eax
jmp 0x41a792
mov eax, str._sFlashGet_v3datFlashGet3db.db
lea esi, [ebp - 0x1b68]
jmp 0x41a2fe
mov eax, str._s_v3datFlashGet3db.db
push esi
push eax
lea eax, [ebp - 0x3f8]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0x3f8]
mov esi, str.PerformFlashGetPasswordRecovery
push eax
push esi
push str._s_Final_Flashget_password_file__s
call fcn.00449974
lea eax, [ebp - 0x3f8]
push eax
call fcn.00449791
add esp, 0x20
test eax, eax
lea eax, [ebp - 0x3f8]
jne 0x41a352
push eax
push esi
push str._s__Flashget_password_file__s_does_not_exist
call fcn.00449974
add esp, 0xc
jmp 0x41a2e5
push ebx
push edi
push edi
push 3
push edi
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41a38e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3f8]
push eax
push esi
push str._n_s_:_Failed_to_open__s__Error0x_.8x
call fcn.00449974
add esp, 0x10
jmp 0x41a44c
push edi
push edi
push edi
push 2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1b80], eax
test eax, eax
jne 0x41a3c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x3f8]
push eax
push esi
push str._s_:_Failed_to_create_flle_mapping_for__s___Error0x_.8x
call fcn.00449974
add esp, 0x10
push ebx
jmp 0x41a3fb
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
mov dword [ebp - 0x1b7c], esi
test esi, esi
jne 0x41a403
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.PerformFlashGetPasswordRecovery
push str._s_:_Failed_to_map_view_of_flle__Error0x_.8x
call fcn.00449974
add esp, 0xc
push dword [ebp - 0x1b80]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x41a44c
push esi
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_File_is_successfully_mapped_at_address__0x_.8x
call fcn.00449974
add esp, 0xc
mov dword [ebp - 0x1b78], edi
lea eax, [ebp - 0x1b78]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x1b78], 0
mov edi, eax
mov dword [ebp - 0x1b74], edi
je 0x41a453
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_Critical_Situation___File_Size_is_higher_than_we_have_expected
call fcn.00449974
pop ecx
pop ecx
xor eax, eax
jmp 0x41a791
push edi
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_File_size_is__u
call fcn.00449974
add esp, 0xc
mov dword [ebp - 0x10], 0x882
mov eax, edi
mov dword [ebp - 0xc], 0x982
xor ecx, ecx
mov dword [ebp - 0x1b6c], eax
mov word [ebp - 8], 0xa89
mov byte [ebp - 6], cl
mov word [ebp - 0x1b70], 0x1282
push eax
push esi
push str.PerformFlashGetPasswordRecovery
push str._n_n_n_s_:_Starting_new_search_at_Start_Address0x_.8x__Remaining_Size___d
mov byte [ebp - 0x7e0], cl
mov byte [ebp - 0xbc8], cl
mov byte [ebp - 0xfb0], cl
call fcn.00449974
mov edi, dword [ebp - 0x1b6c]
lea eax, [ebp - 0x10]
push 0xb
push eax
push edi
push esi
call fcn.00449f17
add esp, 0x20
mov dword [ebp - 0x1b6c], eax
test eax, eax
je 0x41a760
push eax
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_Found_Start_of_MAGIC_Code_at_0x_.8x
call fcn.00449974
mov eax, dword [ebp - 0x1b6c]
add edi, 0xfffffff5
sub esi, eax
add esi, edi
push esi
lea edi, [eax + 0xb]
push edi
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_Now_searching_for_END_MAGIC_CODE_at_Start_Address0x_.8x_Remaining_Size___d
call fcn.00449974
push 2
lea eax, [ebp - 0x1b70]
push eax
push esi
push edi
call fcn.00449f17
mov esi, eax
add esp, 0x2c
test esi, esi
je 0x41a754
push esi
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_Found_End_of_MAGIC_Code_0x_.8x
call fcn.00449974
mov eax, dword [ebp - 0x1b74]
add esp, 0xc
mov edi, dword [ebp - 0x1b7c]
add eax, edi
cmp esi, eax
ja 0x41a771
movzx ecx, byte [esi + 2]
add esi, 4
mov dword [ebp - 0x1b6c], ecx
cmp esi, eax
ja 0x41a771
push esi
push ecx
push str.PerformFlashGetPasswordRecovery
push str._n_n_s_:__Now_reading_website__length_d__from_0x_.8x
call fcn.00449974
push dword [ebp - 0x1b6c]
lea eax, [ebp - 0x1780]
push esi
push eax
call fcn.006269d0
mov eax, dword [ebp - 0x1b6c]
add esp, 0x1c
xor ecx, ecx
and eax, 0xfffffffe
push ecx
push ecx
push 0x3e8
mov word [ebp + eax - 0x1780], cx
lea eax, [ebp - 0xfb0]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1780]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xfb0]
push eax
push str.PerformFlashGetPasswordRecovery
push str._n_s_:__Website___s_
call fcn.00449974
add esi, dword [ebp - 0x1b6c]
add esp, 0xc
mov ecx, dword [ebp - 0x1b74]
add ecx, edi
movzx edx, byte [esi + 0xf]
add esi, 0x11
mov dword [ebp - 0x1b6c], edx
cmp esi, ecx
ja 0x41a771
push esi
push edx
push str.PerformFlashGetPasswordRecovery
push str._n_n_s_:__Now_reading_username__length_d__from_0x_.8x
call fcn.00449974
push dword [ebp - 0x1b6c]
lea eax, [ebp - 0x1780]
push esi
push eax
call fcn.006269d0
mov eax, dword [ebp - 0x1b6c]
add esp, 0x1c
xor ecx, ecx
and eax, 0xfffffffe
push ecx
push ecx
push 0x3e8
mov word [ebp + eax - 0x1780], cx
lea eax, [ebp - 0xbc8]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1780]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0xbc8]
push eax
push str.PerformFlashGetPasswordRecovery
push str._n_s_:__Username___s_
call fcn.00449974
add esi, dword [ebp - 0x1b6c]
add esp, 0xc
mov eax, dword [ebp - 0x1b74]
add eax, edi
movzx edx, byte [esi + 2]
add esi, 4
mov dword [ebp - 0x1b6c], edx
cmp esi, eax
ja 0x41a771
push esi
push edx
push str.PerformFlashGetPasswordRecovery
push str._n_n_s_:__Now_reading_password__length_d__from_0x_.8x
call fcn.00449974
push dword [ebp - 0x1b6c]
lea eax, [ebp - 0x1780]
push esi
push eax
call fcn.006269d0
mov eax, dword [ebp - 0x1b6c]
add esp, 0x1c
xor ecx, ecx
and eax, 0xfffffffe
push ecx
push ecx
push 0x3e8
mov word [ebp + eax - 0x1780], cx
lea eax, [ebp - 0x7e0]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x1780]
push eax
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea eax, [ebp - 0x7e0]
push eax
push str.PerformFlashGetPasswordRecovery
push str._n_s_:__Password___s_
call fcn.00449974
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x7e0]
push ecx
push eax
lea eax, [ebp - 0xbc8]
push eax
lea eax, [ebp - 0xfb0]
push eax
push ecx
push 0x8a
push 5
call fcn.00412c85
mov edx, dword [ebp - 0x1b74]
add esp, 0x2c
add esi, dword [ebp - 0x1b6c]
mov eax, edx
sub eax, esi
add eax, edi
lea ecx, [edx + edi]
mov dword [ebp - 0x1b6c], eax
cmp esi, ecx
ja 0x41a771
cmp eax, 0xa
jb 0x41a771
xor ecx, ecx
jmp 0x41a490
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_________Could_not_find_End_of_MAGIC_Code...may_be_invalid_format
jmp 0x41a76a
push str.PerformFlashGetPasswordRecovery
push str._n_s_:_Could_not_find_Start_of_MAGIC_Code._No_more_stored_logins_found....
call fcn.00449974
pop ecx
pop ecx
push dword [ebp - 0x1b7c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x1b80]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
xor eax, eax
inc eax
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005fe955
leave
ret