Function at 0x401950
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
mov esi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0xc]
push edi
push eax
xor ebx, ebx
push 0x441340
push 0x17
push ebx
push 0x441350
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call esi
mov eax, dword [ebp - 0xc]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
lea eax, [ebp - 4]
push eax
push 0x441320
push 0x17
push ebx
push 0x441330
call esi
cmp dword [ebp + 0x2c], ebx
jne 0x4019dd
lea eax, [ebp - 0x14]
mov esi, dword [ebp + 8]
push eax
or dword [ebp - 0x14], 0xffffffff
push dword [ebp + 0x28]
lea eax, [ebp + 0xc]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push esi
call section..text
cmp dword [ebp - 0x14], ebx
je 0x401a24
mov eax, dword [ebp + 0x30]
mov dword [eax], 7
jmp 0x401f3a
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
fldz
lea esi, [eax + 0x60]
mov byte [ebp - 0x28], 2
fstp qword [ebp - 0x1c]
mov eax, dword [esi]
mov dword [ebp - 0x24], ebx
push edx
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x10], esi
call dword [ecx + 0x10]
mov eax, dword [ebp - 0x24]
cmp eax, ebx
jle 0x401a46
cmp eax, 3
jle 0x401a1a
cmp eax, 6
jne 0x401a46
jmp 0x401f02
mov ecx, dword [ebp + 0x30]
mov dword [ecx], eax
jmp 0x401f3a
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
lea eax, [esi + 0x60]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x1c], 2
mov eax, dword [eax]
mov dword [ebp - 0x18], ebx
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x3c], ebx
mov ecx, dword [eax]
push edx
push 0xffffffffffffffff
push eax
call dword [ecx + 0x8c]
test eax, eax
je 0x401a9b
mov eax, dword [ebp + 0x30]
mov dword [eax], 5
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [esi]
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov ecx, dword [eax]
lea edx, [ebp - 0x20]
jmp 0x401ea4
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x34]
push edx
push dword [ebp - 0x3c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
push dword [ebp - 0x34]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
call esi
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
dec eax
push eax
push ebx
call edi
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x401ae0
push dword [ebp - 0x34]
call fcn.0042f135
dec eax
push eax
push dword [ebp - 0x34]
push dword [ebp + 8]
call fcn.0042f0f8
add esp, 0x10
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x40]
push edx
mov dword [ebp - 0x30], ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x40], ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
test eax, eax
je 0x401b3f
mov eax, dword [ebp + 0x30]
mov dword [eax], 5
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
lea edx, [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x401ea4
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0xc], ebx
push dword [ebp - 0x40]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x34]
push dword [ebp - 0x30]
call esi
dec eax
push eax
push ebx
call edi
mov esi, eax
cmp esi, ebx
mov dword [ebp + 0x14], esi
je 0x401bbd
push dword [ebp - 0x30]
call fcn.0042f135
dec eax
push eax
push dword [ebp - 0x30]
push esi
call fcn.0042f0f8
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0042f1b0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x14]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x38], esi
cmp dword [ebp + 8], ebx
jne 0x401bc2
mov dword [ebp - 0x14], ebx
jmp 0x401bf3
mov dword [ebp - 0x38], ebx
jmp 0x401bb3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0042f1b0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], esi
cmp dword [ebp + 0x2c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
pop edi
push edi
je 0x401da9
call esi
mov eax, dword [ebp - 4]
push 1
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 8]
push eax
call dword [ecx + 0x24]
push edi
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], edi
call esi
cmp dword [ebp - 8], ebx
je 0x401d21
mov eax, dword [ebp - 4]
push 1
push dword [ebp + 0x14]
mov ecx, dword [eax]
push dword [ebp + 8]
push eax
call dword [ecx + 0x24]
add dword [ebp + 0x10], edi
push edi
mov dword [ebp - 8], eax
call esi
cmp dword [ebp + 0x10], 0x2710
jl 0x401c22
cmp dword [ebp - 8], ebx
je 0x401d21
cmp dword [ebp + 8], ebx
jne 0x401c61
mov dword [ebp + 0x2c], ebx
jmp 0x401c92
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0042f1b0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 8]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x2c], esi
cmp dword [ebp + 0x14], ebx
jne 0x401c9b
xor esi, esi
jmp 0x401cc9
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0042f1b0
mov esi, esp
push ebx
push ebx
push edi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x14]
mov byte [esi], bl
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
lea eax, [ebp - 0x250]
push dword [ebp + 0x2c]
push str._s_n_s_nCopyDir
push eax
call fcn.0042f1df
mov eax, dword [ebp + 0x30]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 0x10
mov dword [eax], 5
push dword [ebp + 8]
call esi
push dword [ebp + 0x14]
call esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
jmp 0x401ea4
push edi
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push edi
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], edi
call esi
cmp dword [ebp - 8], ebx
je 0x401eae
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
add dword [ebp + 0x10], edi
push edi
mov dword [ebp - 8], eax
call esi
cmp dword [ebp + 0x10], 0x2710
jl 0x401d39
cmp dword [ebp - 8], ebx
je 0x401eae
mov eax, dword [ebp + 0x30]
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [eax], 5
call esi
push dword [ebp + 0x14]
call esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
jmp 0x401ea4
call esi
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
push edi
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], edi
call esi
cmp dword [ebp - 8], ebx
je 0x401e25
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
add dword [ebp + 0x10], edi
push edi
mov dword [ebp - 8], eax
call esi
cmp dword [ebp + 0x10], 0x2710
jl 0x401dc0
cmp dword [ebp - 8], ebx
je 0x401e25
mov eax, dword [ebp + 0x30]
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [eax], 5
call esi
push dword [ebp + 0x14]
call esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
jmp 0x401ea4
push edi
call esi
push 1
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
push edi
mov dword [ebp - 8], eax
mov dword [ebp + 0x10], edi
call esi
cmp dword [ebp - 8], ebx
jne 0x401eae
push 1
push dword [ebp - 0x38]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add dword [ebp + 0x10], edi
push edi
mov dword [ebp - 8], eax
call esi
cmp dword [ebp + 0x10], 0x2710
jl 0x401e3f
cmp dword [ebp - 8], ebx
jne 0x401eae
mov eax, dword [ebp + 0x30]
push dword [ebp + 8]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [eax], 5
call esi
push dword [ebp + 0x14]
call esi
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov eax, dword [eax]
lea edx, [ebp - 0x20]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
jmp 0x401f3a
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea edx, [ebp - 0x44]
mov edi, dword [ebp - 0x10]
push edx
or dword [ebp - 0x44], 0xffffffff
push dword [ebp + 0x14]
mov eax, dword [edi]
mov dword [ebp - 4], ebx
push dword [ebp + 0x2c]
mov ecx, dword [eax]
push dword [ebp + 0x28]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0xc]
push eax
call dword [ecx + 0x38]
cmp dword [ebp - 0x44], ebx
je 0x401f0d
mov eax, dword [ebp + 0xc]
mov edi, dword [edi]
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], bl
mov dword [ebp - 0x18], ebx
mov eax, dword [edi]
push ecx
push edi
call dword [eax + 0x14]
mov eax, dword [ebp + 0x30]
mov dword [eax], 4
jmp 0x401f3a
push dword [ebp + 0x14]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp + 8]
call esi
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x50]
mov dword [ebp - 0x50], eax
mov eax, dword [edi]
mov byte [ebp - 0x4c], bl
mov dword [ebp - 0x48], ebx
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp + 0x30]
mov dword [eax], ebx
lea esp, [ebp - 0x25c]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x2c