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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x13b4
call fcn.005fec20
mov eax, dword [0x708c34]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00631510
xor ebx, ebx
pop ecx
cmp eax, 1
jae 0x43d08a
lea eax, [ebp - 0x13a4]
push eax
push ebx
push ebx
push 0x1a
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jns 0x43d07d
push str.Failed_to_get_current_users_appdata_folder
call fcn.00449974
pop ecx
xor eax, eax
jmp 0x43d45a
mov eax, str._sMikrotikWinbox_settings.cfg.viw
lea esi, [ebp - 0x13a4]
jmp 0x43d08f
mov eax, str._s_settings.cfg.viw
push esi
push eax
lea eax, [ebp - 0x404]
push 0x3e8
push eax
call fcn.00445d6d
lea eax, [ebp - 0x404]
mov esi, str.RecoverWinboxPasswords
push eax
push esi
push str._s_Final_Winbox_password_file__s
call fcn.00449974
lea eax, [ebp - 0x404]
push eax
call fcn.00449791
add esp, 0x20
test eax, eax
lea eax, [ebp - 0x404]
jne 0x43d0e3
push eax
push esi
push str._s__Winbox_password_file__s_does_not_exist
call fcn.00449974
add esp, 0xc
jmp 0x43d076
push edi
push ebx
push ebx
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x43d11f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x404]
push eax
push esi
push str._s_:_Failed_to_open__s__Error0x_.8x
call fcn.00449974
add esp, 0x10
jmp 0x43d1d9
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
mov dword [ebp - 0x13b4], esi
test esi, esi
jne 0x43d15b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x404]
push eax
push str.RecoverWinboxPasswords
push str._s_:_Failed_to_create_flle_mapping_for__s___Error0x_.8x
call fcn.00449974
add esp, 0x10
push edi
jmp 0x43d187
push ebx
push ebx
push ebx
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x43d18f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.RecoverWinboxPasswords
push str._s_:_Failed_to_map_view_of_flle__Error0x_.8x
call fcn.00449974
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x43d1d9
push ebx
push str.RecoverWinboxPasswords
push str._s_:_File_is_successfully_mapped_at_address__0x_.8x
call fcn.00449974
and dword [ebp - 0x13ac], 0
lea eax, [ebp - 0x13ac]
add esp, 0xc
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [ebp - 0x13ac], 0
mov esi, eax
mov dword [ebp - 0x13b0], esi
je 0x43d1e0
push str.RecoverWinboxPasswords
push str._s_:_Critical_Situation___File_Size_is_higher_than_we_have_expected
call fcn.00449974
pop ecx
pop ecx
xor eax, eax
jmp 0x43d459
push esi
push str.RecoverWinboxPasswords
push str._s_:_File_size_is__u
call fcn.00449974
xor eax, eax
mov dword [ebp - 0x14], 0x64610400
mov byte [ebp - 0x7ec], al
mov byte [ebp - 0xbd4], al
mov byte [ebp - 0xfbc], al
lea eax, [ebp - 0x14]
push 6
push eax
push esi
push ebx
mov word [ebp - 0x10], 0x7264
mov dword [ebp - 0x1c], 0x6f6c0500
mov word [ebp - 0x18], 0x6967
mov byte [ebp - 0x16], 0x6e
mov dword [ebp - 0xc], 0x77700300
mov byte [ebp - 8], 0x64
call fcn.00449f17
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x43d2aa
push esi
push str.RecoverWinboxPasswords
push str._s_:_Found_start_of_addr_at_0x_.8x
call fcn.00449974
add esi, 6
add esp, 0xc
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x43d28f
lea edx, [ebp - 0xfbc]
mov dword [ebp - 0x13a8], eax
add edx, eax
inc eax
inc esi
mov byte [edx], cl
mov cl, byte [esi]
test cl, cl
jne 0x43d261
test eax, eax
je 0x43d28f
cmp dword [ebp - 0x13a8], 0x3e8
jae 0x43d468
mov byte [edx], cl
lea eax, [ebp - 0xfbc]
push eax
push str.RecoverWinboxPasswords
push str._s_:_Server_Address__s_
call fcn.00449974
add esp, 0xc
jmp 0x43d2bb
push str.RecoverWinboxPasswords
push str._s_:_Could_not_find_server_address...addr
call fcn.00449974
pop ecx
pop ecx
push 7
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x13b0]
push ebx
call fcn.00449f17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d33d
push esi
push str.RecoverWinboxPasswords
push str._s_:_Found_start_of_login_at_0x_.8x
call fcn.00449974
add esi, 7
add esp, 0xc
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x43d322
lea edx, [ebp - 0xbd4]
mov dword [ebp - 0x13a8], eax
add edx, eax
inc eax
inc esi
mov byte [edx], cl
mov cl, byte [esi]
test cl, cl
jne 0x43d2f4
test eax, eax
je 0x43d322
cmp dword [ebp - 0x13a8], 0x3e8
jae 0x43d468
mov byte [edx], cl
lea eax, [ebp - 0xbd4]
push eax
push str.RecoverWinboxPasswords
push str._s_:_User_Login__s_
call fcn.00449974
add esp, 0xc
jmp 0x43d34e
push str.RecoverWinboxPasswords
push str._s_:_Could_not_find_user...login
call fcn.00449974
pop ecx
pop ecx
push 5
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x13b0]
push ebx
call fcn.00449f17
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43d3d0
push esi
push str.RecoverWinboxPasswords
push str._s_:_Found_start_of_pwd_at_0x_.8x
call fcn.00449974
add esi, 5
add esp, 0xc
xor eax, eax
mov cl, byte [esi]
test cl, cl
je 0x43d3b5
lea edx, [ebp - 0x7ec]
mov dword [ebp - 0x13a8], eax
add edx, eax
inc eax
inc esi
mov byte [edx], cl
mov cl, byte [esi]
test cl, cl
jne 0x43d387
test eax, eax
je 0x43d3b5
cmp dword [ebp - 0x13a8], 0x3e8
jae 0x43d468
mov byte [edx], cl
lea eax, [ebp - 0x7ec]
push eax
push str.RecoverWinboxPasswords
push str._s_:_Password__s_
call fcn.00449974
add esp, 0xc
jmp 0x43d3e1
push str.RecoverWinboxPasswords
push str._s_:_Could_not_find_password...pwd
call fcn.00449974
pop ecx
pop ecx
lea eax, [ebp - 0x7ec]
push eax
call fcn.00631510
pop ecx
test eax, eax
je 0x43d43e
lea eax, [ebp - 0x7ec]
push eax
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xfbc]
push eax
push str._n_Found_Winbox_Server_Credentials___Site_s__User_s__Password_s__n
call fcn.00449974
push 0xffffffffffffffff
mov ecx, 0x66ae5d
lea eax, [ebp - 0x7ec]
push ecx
push eax
lea eax, [ebp - 0xbd4]
push eax
lea eax, [ebp - 0xfbc]
push eax
push ecx
push 0x2c7
push 7
call fcn.00412c85
add esp, 0x30
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x13b4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
xor eax, eax
inc eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005fe955
leave
ret
call fcn.005fe87a
int3