Function at 0x404556
Capabilities:
Delete file
Move file

Disassembly:
mov eax, 0x480a42
call fcn.0040f970
sub esp, 0x8c4
push ebx
push esi
push edi
lea eax, [ebp - 0x40]
push eax
mov edi, 0x4e31b8
push 0x58
mov ecx, edi
call fcn.00465800
lea eax, [ebp - 0x3c]
push eax
push 0x57
mov ecx, edi
call fcn.00465800
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
push esi
xor ebx, ebx
push eax
mov byte [0x4de62c], 1
mov dword [ebp - 0x14], ebx
call fcn.00467870
pop ecx
pop ecx
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
shr dword [ebp - 0x14], 2
mov dword [ebp - 4], ebx
je 0x404687
mov dword [ebp - 0x10], 0x43
test byte [ebp - 0x14], 1
je 0x404678
cmp dword [ebp + 8], esi
mov eax, str._local
je 0x4045d9
mov eax, 0x48b000
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
xor ecx, ecx
cmp dword [ebp - 0x3c], esi
sete cl
push ecx
xor ecx, ecx
cmp dword [ebp - 0x40], esi
sete cl
push ecx
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push eax
lea eax, [ebp - 0x24]
push str.merge_s_destination__s__drive_c:_pw_d_uuid_d_level_d
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Format]
add esp, 0x20
push ebx
push esi
mov esi, 0x48ae58
push esi
push ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x48b000
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00466390
push eax
push 0x40
push ebx
push ecx
lea eax, [ebp - 0x24]
mov ecx, esp
mov dword [ebp - 0x30], esp
push eax
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_4]
push ecx
mov eax, esp
mov dword [ebp - 0x20], esp
push str._br_funcs.exe
push 0x4de850
push eax
mov byte [ebp - 4], 2
call fcn.00401441
add esp, 0xc
mov byte [ebp - 4], bl
call fcn.00460ca0
add esp, 0x28
cmp eax, ebx
mov dword [ebp - 0x20], eax
jne 0x40496e
xor esi, esi
inc esi
shr dword [ebp - 0x14], 1
inc dword [ebp - 0x10]
cmp dword [ebp - 0x14], ebx
jne 0x4045c0
push ebx
push esi
push dword [ebp + 8]
call fcn.00463560
add esp, 0xc
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x2b8]
push dword [ebp + 8]
call fcn.00460980
push esi
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], 3
call fcn.00460580
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x18], eax
call fcn.0045e0c0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_5]
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x18]
mov byte [ebp - 4], 5
mov dword [ebp - 0x10], eax
ja 0x4048dd
mov esi, 0x208
mov eax, dword [ebp - 0x10]
inc eax
push eax
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x30], eax
call fcn.0045d4b0
push 0xffffffffffffffff
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0045d8c0
push dword [ebp - 0x10]
lea ecx, [ebp - 0x2b8]
call fcn.0045d4b0
push 0xffffffffffffffff
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2b8]
call fcn.0045d8c0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [ebp - 0x4c]
call fcn.00414780
push ebx
push ebx
push 0x2001f
lea eax, [ebp - 0x4c]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 6
call fcn.0041a730
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 8
call fcn.004034a5
lea ecx, [ebp - 0x28]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::GetBuffer]
push eax
lea ecx, [ebp - 0x58]
call fcn.00414780
push ebx
push 1
push 0x2001f
lea eax, [ebp - 0x58]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 9
call fcn.0041a730
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xb
call fcn.004034a5
lea eax, [ebp - 0xa0]
push eax
lea ecx, [ebp - 0x7c]
call fcn.0041b190
mov eax, dword [ebp - 0x10]
cmp dword [ebp + 0xc], eax
jne 0x4047f8
push ebx
push eax
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
call fcn.004602b0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov cl, 0x14
call fcn.0040fa50
push eax
push 7
lea ecx, [ebp - 0x2b8]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
call fcn.0045dd30
push dword [ebp - 0x10]
lea eax, [ebp - 0x6c8]
push str.bt_d.dat
push esi
push eax
call fcn.00403fa3
lea eax, [ebp - 0x6c8]
push eax
push str.common
push dword [ebp + 0x10]
lea eax, [ebp - 0x4c0]
push str._s_s_s
push esi
push eax
call fcn.00403fa3
push dword [ebp - 0x30]
lea eax, [ebp - 0x6c8]
push str.bt_d.dat
push esi
push eax
call fcn.00403fa3
lea eax, [ebp - 0x6c8]
push eax
push str.common
push dword [ebp + 0x10]
lea eax, [ebp - 0x8d0]
push str._s_s_s
push esi
push eax
call fcn.00403fa3
add esp, 0x50
lea eax, [ebp - 0x4c0]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x8d0]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x4048b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x4c0]
push eax
lea eax, [ebp - 0x8d0]
push eax
push str.DoMerge___MoveFile___of__s_to__s_failed._Error__d
push 0x48ae58
call fcn.004572b0
add esp, 0x14
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 8
call fcn.0041a860
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.0041a860
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
jbe 0x4046ee
lea eax, [ebp - 0x1c]
push eax
mov esi, 0x94
push esi
mov ecx, edi
call fcn.00465800
cmp dword [ebp - 0x1c], ebx
je 0x404903
dec dword [ebp - 0x1c]
push 8
push dword [ebp - 0x1c]
mov ecx, edi
push esi
call fcn.00465530
push dword [ebp + 0x10]
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_6]
push ebx
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, 0x4de638
mov byte [ebp - 4], 0xc
call fcn.0045ac70
lea ecx, [ebp - 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x28]
mov byte [0x4de62c], bl
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
lea ecx, [ebp - 0x2b8]
mov byte [ebp - 4], bl
call fcn.0045d490
lea ecx, [ebp - 0x24]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
push eax
push str.br_funcs_MERGE_returned_error_0x_X
push esi
call fcn.004572b0
push ebx
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
call fcn.00463030
add esp, 0x1c
mov byte [0x4de62c], bl
jmp 0x404953