Function at 0x44fc50
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], 0x74d1d0
mov dword [esp + 8], 1
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0x748e64
call dword [sym.imp.ole32.dll_CoCreateInstance]
sub esp, 0x14
test eax, eax
js 0x44ff12
mov edx, dword [ebx + 0x138]
mov esi, 0x731be8
mov eax, dword [edx]
mov ecx, dword [eax + 0x14]
mov eax, dword [0x70c340]
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 [0x70c34c]
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 0x44ff12
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 0x44ff01
xor edx, edx
nop
lea esi, [esi]
mov eax, dword [ebx + 0x148]
lea edx, [edx + edx*2]
mov dword [esp], 0x731d24
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], 0x731d24
call fcn.0064a830
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 0x44fde0
test edi, edi
jne 0x44fde0
mov dword [esp], 0x731c10
call fcn.006dfd70
nop
mov ecx, esi
sar ecx, 1
cmp ecx, 7
mov eax, ecx
mov dword [ebp - 0x48], ecx
ja 0x44ff20
cmp eax, 1
je 0x44ff60
test ecx, ecx
lea edx, [ebp - 0x28]
jne 0x44ff70
xor ecx, ecx
mov dword [ebp - 0x2c], eax
mov word [edx + eax*2], cx
mov dword [esp], edx
call fcn.0043ff20
mov eax, dword [ebx + 0x154]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x44fb50
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 0x44ff74
mov eax, dword [ebx + 0x154]
mov edx, dword [ebx + 0x13c]
mov ecx, 0x8554b8
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.0043f470
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 0x4500f3
lea edi, [ebp - 0x28]
cmp eax, edi
je 0x44fed5
mov dword [esp], eax
call fcn.006eb330
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 0x44fd70
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.006c1e40
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 0x44fe06
movzx edx, word [edi]
mov word [ebp - 0x28], dx
lea edx, [ebp - 0x28]
jmp 0x44fe06
mov eax, edx
jmp 0x44ff42
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
cmp eax, edi
je 0x44ff8e
mov dword [esp], eax
call fcn.006eb330
mov eax, dword [ebx + 0x138]
mov edx, dword [eax]
mov dword [esp], eax
call dword [edx + 0x10]
sub esp, 4
test esi, esi
je 0x44ff12
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 0x450105
cmp edx, 1
mov eax, dword [ebp - 0x60]
je 0x450146
test edx, edx
jne 0x450127
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], 0x731d5c
mov dword [esp + 8], 0x10
mov dword [esp + 4], 0x44d450
mov dword [esp], edi
call fcn.0044d990
mov dword [esp], 0x731cb4
call sub.msvcrt.dll_wcslen
mov edx, 0x3fffffff
sub edx, dword [ebp - 0x44]
cmp eax, edx
ja 0x4501a3
mov dword [esp + 4], eax
mov dword [esp], 0x731cb4
mov ecx, edi
call fcn.006c1ce0
lea edi, [ebp - 0x28]
lea edx, [eax + 8]
sub esp, 8
mov dword [ebp - 0x30], edi
mov ecx, dword [eax]
cmp ecx, edx
je 0x450155
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.006c1ce0
mov eax, dword [ebp - 0x30]
lea edi, [ebp - 0x28]
sub esp, 8
cmp eax, edi
je 0x45009c
mov dword [esp], eax
call fcn.006eb330
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x40]
cmp eax, edx
je 0x4500ae
mov dword [esp], eax
call fcn.006eb330
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 [0x853238]
mov dword [esp], eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, dword [ebp - 0x60]
sub esp, 0x10
cmp eax, ebx
je 0x44ff12
mov dword [esp], eax
call fcn.006eb330
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 0x44ff86
jmp 0x44ff01
lea eax, [ebp - 0x30]
lea ecx, [ebp - 0x60]
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.006c1e40
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 0x44ffe0
movzx ecx, word [str.Copy_failed_with_error]
mov word [eax], cx
jmp 0x44ffe0
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 0x45005d
mov eax, dword [ebp - 0x60]
cmp eax, ebx
je 0x45019b
mov dword [esp], eax
call fcn.006eb330
mov dword [esp], esi
call fcn.005d7530
mov dword [esp], 0x731c5c
call fcn.006e0080
mov esi, eax
jmp 0x45018c