Function at 0x4501d0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, ecx
sub esp, 0x8c
mov dword [esp], 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebx + 0x138]
sub esp, 4
mov dword [esp + 0xc], 0x74bdf0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0x747aa4
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x450492
mov edx, dword [ebx + 0x138]
mov esi, 0x730b38
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [0x70b340]
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 [0x70b34c]
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 0x450492
mov eax, dword [ebx + 0x140]
sub eax, dword [ebx + 0x13c]
mov dword [ebx + 0x154], 0
sar eax, 3
imul eax, eax, 0xaaaaaaab
test eax, eax
je 0x450481
xor edx, edx
nop
lea esi, [esi]
mov eax, dword [ebx + 0x148]
lea edx, [edx + edx*2]
mov dword [esp], 0x730c74
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], 0x730c74
call fcn.00648e10
mov edx, dword [ebx + 0x154]
sub esp, 0xc
mov dword [ebp - 0x30], edi
lea ecx, [edx + edx*2]
mov edx, dword [ebx + 0x148]
lea edx, [edx + ecx*8]
cmp dword [edx + 4], eax
mov edi, dword [edx]
cmovbe eax, dword [edx + 4]
lea esi, [eax + eax]
mov eax, edi
add eax, esi
je 0x450360
test edi, edi
jne 0x450360
mov dword [esp], 0x730b60
call fcn.006de350
nop
mov ecx, esi
sar ecx, 1
cmp ecx, 7
mov eax, ecx
mov dword [ebp - 0x48], ecx
ja 0x4504a0
cmp eax, 1
je 0x4504e0
test ecx, ecx
lea edx, [ebp - 0x28]
jne 0x4504f0
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov word [edx + eax*2], cx
mov dword [esp], edx
call fcn.004406d0
mov eax, dword [ebx + 0x154]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x4500d0
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 0x4504f4
mov eax, dword [ebx + 0x154]
mov edx, dword [ebx + 0x13c]
mov ecx, 0x8534b8
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.0043fc30
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 eax, dword [ebp - 0x30]
jne 0x450673
lea edi, [ebp - 0x28]
cmp eax, edi
je 0x450455
mov dword [esp], eax
call fcn.006e9880
mov eax, dword [ebx + 0x154]
lea edx, [eax + 1]
mov eax, dword [ebx + 0x140]
sub eax, dword [ebx + 0x13c]
mov dword [ebx + 0x154], edx
sar eax, 3
imul eax, eax, 0xaaaaaaab
cmp eax, edx
ja 0x4502f0
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
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c0420
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 eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
jmp 0x450386
movzx edx, word [edi]
mov word [ebp - 0x28], dx
lea edx, [ebp - 0x28]
jmp 0x450386
mov eax, edx
jmp 0x4504c2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
cmp eax, edi
je 0x45050e
mov dword [esp], eax
call fcn.006e9880
mov eax, dword [ebx + 0x138]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 4
test esi, esi
je 0x450492
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 0x450685
cmp edx, 1
mov eax, dword [ebp - 0x60]
je 0x4506c6
test edx, edx
jne 0x4506a7
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], 0x730cac
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x44d9d0
mov dword [esp], edi
call fcn.0044df10
mov dword [esp], 0x730c04
call sub.msvcrt.dll_wcslen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x44]
cmp eax, edx
ja 0x450723
mov dword [esp + 4], eax
mov dword [esp], 0x730c04
mov ecx, edi
call fcn.006c02c0
lea edi, [ebp - 0x28]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x30], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x4506d5
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.006c02c0
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
sub esp, 8
cmp eax, edi
je 0x45061c
mov dword [esp], eax
call fcn.006e9880
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x45062e
mov dword [esp], eax
call fcn.006e9880
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 [0x851238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x60]
sub esp, 0x10
cmp eax, ebx
je 0x450492
mov dword [esp], eax
call fcn.006e9880
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea edi, [ebp - 0x28]
xor esi, esi
cmp eax, edi
jne 0x450506
jmp 0x450481
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c0420
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 0x450560
movzx ecx, word [str.Copy_failed_with_error]
mov word [eax], cx
jmp 0x450560
mov ecx, dword [eax + 0x14]
mov edi, dword [eax + 0xc]
mov esi, dword [eax + 0x10]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x24], edi
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], edi
jmp 0x4505dd
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x45071b
mov dword [esp], eax
call fcn.006e9880
mov dword [esp], esi
call fcn.005d5ce0
mov dword [esp], 0x730bac
call fcn.006de660
mov esi, eax
jmp 0x45070c