Function at 0x404b5a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x90
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x404b78
cmp dword [ebp + 0xc], 0
jne 0x404b82
mov eax, 0xffffffff
jmp 0x405104
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x404bb6
mov dword [esp + 8], str.backup_update_file
mov dword [esp + 4], str._s:_ERROR:_no_mbdb_in_given_backup_t_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xffffffff
jmp 0x405104
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x44]
mov dword [esp + 8], eax
lea eax, [ebp - 0x40]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.00405fd8
test eax, eax
jns 0x404c0b
mov dword [esp + 8], str.backup_update_file
mov dword [esp + 4], 0x5fece0
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, 0xffffffff
jmp 0x405104
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00404869
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jns 0x404caf
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp - 0x44]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 4]
mov ebx, dword [ecx]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], ecx
call sub.msvcrt.dll_memcpy
jmp 0x404e4b
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x24]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [esp], eax
call fcn.00405764
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call fcn.00405b1f
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax]
mov edx, eax
sub edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x44]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 4]
mov dword [esp + 8], 6
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add dword [ebp - 0x18], 6
mov dword [ebp - 0x1c], 0
jmp 0x404da3
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
mov dword [esp + 8], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00407d61
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.005a0e48
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x18], eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jl 0x404d39
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x40]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x44]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x1c], eax
jmp 0x404e3d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 0x1c]
shl edx, 2
add eax, edx
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x60], 0
lea eax, [ebp - 0x60]
mov dword [esp + 8], eax
lea eax, [ebp - 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00407d61
mov edx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x5c]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x5c]
mov dword [esp], eax
call fcn.005a0e48
mov eax, dword [ebp - 0x60]
add dword [ebp - 0x18], eax
inc dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0xc]
cmp eax, dword [ebp - 0x1c]
jg 0x404dd3
cmp dword [ebp - 0x14], 0
jne 0x404e83
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x24
mov dword [esp + 4], 1
mov dword [esp], str.Uh__could_not_re_create_mbdb_data___n
call sub.msvcrt.dll_fwrite
mov eax, 0xffffffff
jmp 0x405104
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
mov dword [esp], eax
call fcn.00406a2b
mov eax, dword [ebp - 0x40]
mov dword [esp], eax
call fcn.005a0e48
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.004066f1
mov edx, dword [ebp + 8]
mov dword [edx + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.005a0e48
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ax, word [eax]
movzx eax, ax
lea edx, [eax + 1]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ax, word [eax + 8]
movzx eax, ax
add eax, edx
add eax, 5
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x6c], 0xffffffff
mov edx, eax
mov al, 0
mov ecx, dword [ebp - 0x6c]
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
mov eax, dword [ebp - 0x34]
add eax, edx
mov word [eax], 0x2d
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.005a0e90
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 0x2a
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x38], eax
lea ebx, [ebp - 0x58]
mov al, 0
mov edx, 0x14
mov edi, ebx
mov ecx, edx
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [ebp - 0x58]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.004e8b90
mov eax, dword [ebp - 0x34]
mov dword [esp], eax
call fcn.005a0e48
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x6c], 0xffffffff
mov edx, eax
mov al, 0
mov ecx, dword [ebp - 0x6c]
mov edi, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea edx, [eax - 1]
mov eax, dword [ebp - 0x38]
add eax, edx
mov word [eax], 0x2f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0x38]
add eax, edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x20], 0
jmp 0x40501f
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x20]
add eax, edx
mov al, byte [eax]
movzx eax, al
mov edx, dword [ebp - 0x20]
shl edx, 1
mov ecx, edx
mov edx, dword [ebp - 0x3c]
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], str._02x
mov dword [esp], edx
call sub.msvcrt.dll_sprintf
inc dword [ebp - 0x20]
cmp dword [ebp - 0x20], 0x13
jle 0x404fef
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
test eax, eax
je 0x405086
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00406548
test eax, eax
jns 0x4050f6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov edx, dword [ebp - 0x38]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.backup_update_file
mov dword [esp + 4], str._s:_ERROR:_could_not_copy_file__s_to__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4050f6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
test eax, eax
je 0x4050e3
mov eax, dword [ebp + 0xc]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.004064ca
test eax, eax
jns 0x4050f6
mov eax, dword [ebp - 0x38]
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.backup_update_file
mov dword [esp + 4], str._s:_ERROR:_could_not_write_to__s_n
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [ebp - 0xc], 0xffffffff
jmp 0x4050f6
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ax, word [eax + 0x28]
movzx eax, ax
and eax, 0x4000
test eax, eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call fcn.005a0e48
mov eax, dword [ebp - 0xc]
add esp, 0x90
pop ebx
pop edi
pop ebp
ret