Function at 0x451f00
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x7c
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebx + 0x138]
sub esp, 4
mov dword [esp + 0xc], 0x761170
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0x75cd94
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x452196
mov edx, dword [ebx + 0x138]
mov esi, 0x7455d8
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [0x720304]
mov dword [esp], edx
test eax, eax
cmove eax, esi
mov dword [esp + 4], eax
call ecx
mov edx, dword [ebx + 0x138]
sub esp, 8
mov eax, dword [edx]
mov ecx, dword [eax + 0x28]
mov eax, dword [0x720310]
mov dword [esp], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 1
test eax, eax
cmove eax, esi
mov dword [esp + 8], eax
call ecx
mov eax, dword [ebx + 0x138]
mov ecx, dword [ebp + 8]
sub esp, 0x14
mov edx, dword [eax]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0x14
test eax, eax
js 0x452196
xor eax, eax
mov ecx, dword [ebx + 0x140]
cmp dword [ebx + 0x13c], ecx
mov dword [ebx + 0x154], 0
je 0x452185
lea esi, [esi]
lea edx, [eax + eax*2]
mov eax, dword [ebx + 0x148]
mov dword [esp], 0x745714
lea edi, [ebp - 0x28]
lea esi, [eax + edx*8]
call sub.msvcrt.dll_wcslen
mov ecx, esi
mov dword [esp + 8], eax
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x745714
call fcn.0064f590
sub esp, 0xc
cmp dword [esi + 4], eax
mov dword [ebp - 0x30], edi
cmovbe eax, dword [esi + 4]
mov edi, dword [esi]
lea esi, [eax + eax]
mov eax, edi
add eax, esi
je 0x452065
test edi, edi
je 0x45241d
mov eax, esi
sar eax, 1
cmp eax, 7
mov edx, eax
mov dword [ebp - 0x48], eax
ja 0x4521d0
cmp eax, 1
jne 0x452210
movzx eax, word [edi]
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
xor ecx, ecx
mov dword [ebp - 0x2c], edx
mov word [eax + edx*2], cx
mov dword [esp], eax
call fcn.00441300
mov eax, dword [ebx + 0x154]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x451dc0
mov edx, dword [ebx + 0x148]
lea eax, [eax + eax*2]
mov edx, dword [edx + eax*8]
mov dword [esp + 4], edx
mov edx, dword [ebx + 0x13c]
mov eax, dword [edx + eax*8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
sub esp, 0x18
test eax, eax
je 0x452220
mov eax, dword [ebx + 0x154]
mov edx, dword [ebx + 0x13c]
mov ecx, 0x869458
mov esi, dword [ebx + 0x168]
mov edi, dword [ebx + 0x16c]
lea eax, [eax + eax*2]
lea eax, [edx + eax*8]
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004416d0
sub esp, 4
add esi, eax
mov eax, dword [ebx + 0x138]
adc edi, edx
mov dword [ebx + 0x168], esi
mov dword [ebx + 0x16c], edi
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x1c]
sub esp, 4
test eax, eax
mov edx, dword [ebp - 0x30]
jne 0x4523a0
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x4521a0
mov dword [esp], edx
call fcn.006febf0
mov edx, dword [ebx + 0x140]
sub edx, dword [ebx + 0x13c]
mov eax, dword [ebx + 0x154]
sar edx, 3
add eax, 1
imul edx, edx, 0xaaaaaaab
mov dword [ebx + 0x154], eax
cmp edx, eax
ja 0x452010
mov eax, dword [ebx + 0x138]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov edx, dword [ebx + 0x140]
sub edx, dword [ebx + 0x13c]
mov eax, dword [ebx + 0x154]
sar edx, 3
add eax, 1
imul edx, edx, 0xaaaaaaab
mov dword [ebx + 0x154], eax
cmp eax, edx
jb 0x452010
jmp 0x452185
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c61c0
mov edx, dword [ebp - 0x48]
sub esp, 8
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0x30]
jmp 0x45208a
test eax, eax
lea eax, [ebp - 0x28]
je 0x45208a
jmp 0x4521f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x30]
mov esi, eax
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x45223a
mov dword [esp], edx
call fcn.006febf0
mov eax, dword [ebx + 0x138]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 4
test esi, esi
je 0x452196
lea ebx, [ebp - 0x58]
mov dword [esp], str.Copy_failed_with_error
mov dword [ebp - 0x60], ebx
call sub.msvcrt.dll_wcslen
lea edi, [eax + eax]
mov edx, edi
sar edx, 1
cmp edx, 7
mov dword [ebp - 0x30], edx
ja 0x4523b2
cmp edx, 1
mov eax, dword [ebp - 0x60]
jne 0x4523f3
movzx ecx, word [str.Copy_failed_with_error]
mov word [eax], cx
lea edi, [ebp - 0x48]
xor ecx, ecx
mov dword [ebp - 0x5c], edx
mov word [eax + edx*2], cx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0x74574c
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x44f8a0
mov dword [esp], edi
call fcn.0044fde0
mov dword [esp], 0x7456a4
call sub.msvcrt.dll_wcslen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x44]
cmp eax, edx
ja 0x452486
mov dword [esp + 4], eax
mov dword [esp], 0x7456a4
mov ecx, edi
call fcn.006c6070
lea edi, [ebp - 0x28]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x30], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x452400
mov dword [ebp - 0x30], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x2c], ecx
mov dword [eax], edx
xor edx, edx
mov dword [eax + 4], 0
mov word [eax + 8], dx
lea ecx, [ebp - 0x60]
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.006c6070
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
sub esp, 8
cmp eax, edi
je 0x45234a
mov dword [esp], eax
call fcn.006febf0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x45235c
mov dword [esp], eax
call fcn.006febf0
mov eax, dword [ebp - 0x60]
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], str.Create_USB_Drive
mov dword [esp + 4], eax
mov eax, dword [0x867218]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x60]
sub esp, 0x10
cmp eax, ebx
je 0x452196
mov dword [esp], eax
call fcn.006febf0
jmp 0x452196
lea eax, [ebp - 0x28]
xor esi, esi
cmp edx, eax
jne 0x452232
jmp 0x452185
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c61c0
mov edx, dword [ebp - 0x30]
sub esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x58], edx
mov dword [esp + 8], edi
mov dword [esp + 4], str.Copy_failed_with_error
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x60]
jmp 0x45228e
test edx, edx
je 0x45228e
jmp 0x4523d4
mov ecx, dword [eax + 8]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 4]
mov dword [ebp - 0x24], ecx
mov ecx, dword [edx + 8]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edx + 0xc]
mov dword [ebp - 0x1c], ecx
jmp 0x45230b
mov dword [esp], 0x745600
call fcn.006e4530
mov esi, eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
cmp eax, ecx
je 0x45243d
mov dword [esp], eax
call fcn.006febf0
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x45244f
mov dword [esp], eax
call fcn.006febf0
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x45245e
mov dword [esp], eax
call fcn.006febf0
mov dword [esp], esi
call fcn.005e6130
mov edx, dword [ebp - 0x30]
mov ebx, eax
lea eax, [ebp - 0x28]
cmp edx, eax
je 0x45247a
mov dword [esp], edx
call fcn.006febf0
mov dword [esp], ebx
call fcn.005e6130
mov esi, eax
jmp 0x45243d
mov dword [esp], 0x74564c
call fcn.006e46c0
mov esi, eax
jmp 0x45244f