Function at 0x420f90
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44a8fa
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4640b4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
push 1
mov dword [ebp - 0x64], ebx
push dword [ecx + 0x44]
mov dword [ebp - 0x7c], eax
push dword [ecx + 0x40]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
or edi, 0xffffffff
mov dword [ebp - 0x68], eax
test esi, esi
jne 0x421394
cmp eax, 2
je 0x421394
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
push 0x1c
mov dword [ebp - 4], esi
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 1
test esi, esi
je 0x42105c
mov ebx, dword [ebp - 0x6c]
mov eax, dword [ebx + 0x44]
cmp dword [eax - 4], 1
jle 0x421033
push dword [eax - 0xc]
lea ecx, [ebx + 0x44]
call fcn.0040a080
mov eax, dword [ebx + 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040ea20
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
mov ebx, 1
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::StringFormattable::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esi], vtable.gmg::SystemTools::StringFormattable.0
jmp 0x42105e
xor esi, esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x5c]
mov dword [ebp - 4], 3
push esi
mov dword [ebp - 0x60], 0
call fcn.004221f0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x78]
call fcn.00422bf0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x4210b8
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x4210b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x4210b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0
test bl, 1
je 0x421106
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffe
mov dword [ebp - 0x64], ebx
cmp edx, 8
jb 0x421106
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4210fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4210fc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
push 8
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 5
test esi, esi
je 0x421130
push dword [ebp - 0x68]
mov ecx, esi
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::WinOS::SystemErrorFormattable::constructor_unsigned_long_int_]
mov dword [esi], vtable.gmg::SystemTools::WinOS::SystemErrorFormattable.0
jmp 0x421132
xor esi, esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x5c]
mov byte [ebp - 4], 0
push esi
mov dword [ebp - 0x60], 0
call fcn.00422280
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x78]
call fcn.00422bf0
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0
test esi, esi
je 0x42118a
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x42118a
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x42118a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x64
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 7
test esi, esi
je 0x421202
push 0x44fcb8
lea ecx, [ebp - 0x58]
call fcn.0040ea20
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x40]
or ebx, 0xe
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x64], ebx
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
push 2
call dword [sym.imp.SystemToolsCPP.dll___0LocalizableStatusMessage_SystemTools_gmg__QAE_W4Severity_StatusMessage_12_ABV__basic_string__WU__cha]
mov dword [esi], vtable.gmg::SystemTools::LocalizableStatusMessage.0
jmp 0x421209
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], 0xd
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov esi, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0xe
push dword [ebp - 0x5c]
mov dword [ecx], 0
push dword [ebp - 0x68]
mov dword [ecx + 4], 0
call fcn.004220d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x421273
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421273
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x421273
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xc
test bl, 8
je 0x4212d5
mov edx, dword [ebp - 0x2c]
and ebx, 0xfffffff7
mov dword [ebp - 0x64], ebx
cmp edx, 8
jb 0x4212c1
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4212b7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4212b7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 4], 0xb
test bl, 4
je 0x421337
mov edx, dword [ebp - 0x14]
and ebx, 0xfffffffb
mov dword [ebp - 0x64], ebx
cmp edx, 8
jb 0x421323
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421319
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x421319
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], 0
test bl, 2
je 0x421385
mov edx, dword [ebp - 0x44]
and ebx, 0xfffffffd
mov dword [ebp - 0x64], ebx
cmp edx, 8
jb 0x421385
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42137b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42137b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
lea ecx, [ebp - 0x78]
mov dword [ebp - 4], 0xffffffff
call fcn.00422490
mov eax, dword [ebp - 0x6c]
push 0
push dword [eax + 0x40]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
test esi, esi
jne 0x42173f
cmp eax, 2
je 0x42173f
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
push 0x1c
mov dword [ebp - 4], 0xf
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 0x10
test esi, esi
je 0x42142b
mov ecx, dword [ebp - 0x6c]
add ecx, 0x40
mov eax, dword [ecx]
cmp dword [eax - 4], 1
jle 0x421404
push dword [eax - 0xc]
call fcn.0040a080
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx + 0x40]
push eax
lea ecx, [ebp - 0x58]
call fcn.0040ea20
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 0x11
or ebx, 0x10
mov ecx, esi
push eax
mov dword [ebp - 0x64], ebx
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::StringFormattable::constructor_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
mov dword [esi], vtable.gmg::SystemTools::StringFormattable.0
jmp 0x42142d
xor esi, esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x5c]
mov dword [ebp - 4], 0x12
push esi
mov dword [ebp - 0x60], 0
call fcn.004221f0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 0x13
push eax
lea ecx, [ebp - 0x78]
call fcn.00422bf0
mov esi, dword [ebp - 0x5c]
test esi, esi
je 0x421487
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421487
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x421487
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - 4], 0xf
test bl, 0x10
je 0x4214d5
mov edx, dword [ebp - 0x44]
and ebx, 0xffffffef
mov dword [ebp - 0x64], ebx
cmp edx, 8
jb 0x4214d5
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4214cb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4214cb
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
push 8
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 0x14
test esi, esi
je 0x4214ff
push dword [ebp - 0x68]
mov ecx, esi
call dword [sym.imp.SystemToolsCPP.dll_public:_void___thiscall_gmg::SystemTools::WinOS::SystemErrorFormattable::constructor_unsigned_long_int_]
mov dword [esi], vtable.gmg::SystemTools::WinOS::SystemErrorFormattable.0
jmp 0x421501
xor esi, esi
mov dword [ebp - 0x5c], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x5c]
mov byte [ebp - 4], 0xf
push esi
mov dword [ebp - 0x60], 0
call fcn.00422280
lea eax, [ebp - 0x60]
mov byte [ebp - 4], 0x15
push eax
lea ecx, [ebp - 0x78]
call fcn.00422bf0
mov esi, dword [ebp - 0x5c]
mov byte [ebp - 4], 0xf
test esi, esi
je 0x421559
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421559
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x421559
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
push 0x64
call sub.mfc140u.dll_operator_2
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
mov dword [ebp - 0x5c], esi
mov byte [ebp - 4], 0x16
test esi, esi
je 0x4215d4
push 0x44fd58
lea ecx, [ebp - 0x58]
call fcn.0040ea20
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0x19
push eax
lea eax, [ebp - 0x28]
or ebx, 0xe0
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x64], ebx
push eax
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
push 2
call dword [sym.imp.SystemToolsCPP.dll___0LocalizableStatusMessage_SystemTools_gmg__QAE_W4Severity_StatusMessage_12_ABV__basic_string__WU__cha]
mov dword [esi], vtable.gmg::SystemTools::LocalizableStatusMessage.0
jmp 0x4215db
mov dword [ebp - 0x68], 0
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x84]
push eax
mov dword [ebp - 4], 0x1c
call dword [sym.imp.SystemToolsCPP.dll_public:_class_std::shared_ptr_class_gmg::SystemTools::StatusMessageCollector____thiscall_gmg::SystemTools::TaskFace::GetStatusMessageCollector_void_]
mov esi, dword [eax]
sub esp, 8
mov ecx, esp
mov dword [ebp - 4], 0x1d
push dword [ebp - 0x5c]
mov dword [ecx], 0
push dword [ebp - 0x68]
mov dword [ecx + 4], 0
call fcn.004220d0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x80]
test esi, esi
je 0x421644
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x421644
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x421644
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
test bl, bl
jns 0x42169e
mov edx, dword [ebp - 0x14]
and ebx, 0xffffff7f
cmp edx, 8
jb 0x42168a
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421680
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x421680
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test bl, 0x40
je 0x4216f6
mov edx, dword [ebp - 0x2c]
and ebx, 0xffffffbf
cmp edx, 8
jb 0x4216e2
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4216d8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x4216d8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
test bl, 0x20
je 0x421737
mov edx, dword [ebp - 0x44]
cmp edx, 8
jb 0x421737
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x42172d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42172d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00445a54
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.00422490
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00445a43
mov esp, ebp
pop ebp
ret 4