Function at 0x46aa94
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x74
push 0
push 0
dec ecx
jne 0x46aa9c
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x46af17
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.0046a7f0
test al, al
je 0x46ae83
lea eax, [ebp - 4]
call fcn.004067d0
push eax
push 0x46af28
push 1
push 0
mov eax, dword [0x46ece8]
push eax
call sub.ole32.dll_CoCreateInstance
test eax, 0x80000000
sete al
test al, al
je 0x46ae83
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, 0x46af38
call fcn.00406814
lea eax, [ebp - 0x378]
xor ecx, ecx
mov edx, 0x140
call fcn.00403614
lea eax, [ebp - 0x235]
xor ecx, ecx
mov edx, 0x200
call fcn.00403614
push 0x20
mov eax, ebx
call fcn.00405524
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
test eax, 0x80000000
sete al
test al, al
je 0x46ae83
push 2
lea eax, [ebp - 0x378]
push eax
push 0x200
lea eax, [ebp - 0x235]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, 0x80000000
sete al
test al, al
je 0x46ab87
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x235]
mov ecx, 0x201
call fcn.00404e4c
lea eax, [ebp - 0x384]
mov edx, dword [ebp - 0x1c]
call fcn.00405514
mov eax, dword [ebp - 0x384]
lea edx, [ebp - 0x380]
call fcn.0046a674
mov edx, dword [ebp - 0x380]
lea eax, [ebp - 0x37c]
call fcn.00404e64
mov eax, dword [ebp - 0x37c]
mov dword [ebp - 0x2c], eax
mov esi, dword [ebp - 0x2c]
test esi, esi
je 0x46abcc
sub esi, 4
mov esi, dword [esi]
mov edi, 0x46af50
test edi, edi
je 0x46abda
sub edi, 4
mov edi, dword [edi]
push edi
mov eax, 0x46af50
call fcn.0040506c
push eax
push esi
mov eax, dword [ebp - 0x2c]
call fcn.0040506c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
je 0x46ac07
mov al, 1
jmp 0x46ac85
lea edx, [ebp - 0x388]
mov eax, dword [ebp - 0x1c]
call fcn.00409db8
mov eax, dword [ebp - 0x388]
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x390]
xor eax, eax
call fcn.00403344
mov eax, dword [ebp - 0x390]
lea edx, [ebp - 0x38c]
call fcn.00409db8
mov eax, dword [ebp - 0x38c]
mov dword [ebp - 0x34], eax
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x46ac51
sub edi, 4
mov edi, dword [edi]
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x46ac5d
sub esi, 4
mov esi, dword [esi]
push esi
mov eax, dword [ebp - 0x34]
call fcn.0040506c
push eax
push edi
mov eax, dword [ebp - 0x30]
call fcn.0040506c
push eax
push 1
push 0x400
call sub.kernel32.dll_CompareStringA_1
sub eax, 2
test eax, eax
sete al
test al, al
jne 0x46ae83
lea edx, [ebp - 0x398]
mov eax, dword [0x46edb0]
mov eax, dword [eax]
call fcn.0045b7e8
mov edx, dword [ebp - 0x398]
lea eax, [ebp - 0x394]
call fcn.00405514
mov eax, dword [ebp - 0x394]
lea edx, [ebp - 0xc]
call fcn.0046a72c
push dword [ebp - 0xc]
push 0x46af5c
lea edx, [ebp - 0x39c]
mov eax, ebx
call fcn.0046a5e8
push dword [ebp - 0x39c]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405610
lea edx, [ebp - 0x3a0]
mov eax, ebx
call fcn.0046a5e8
mov ecx, dword [ebp - 0x3a0]
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004055a0
mov eax, dword [ebp - 0x14]
call fcn.0046a7f0
test al, al
je 0x46ad1a
xor edx, edx
mov eax, dword [ebp - 0x14]
call fcn.0046a838
push 0
mov eax, dword [ebp - 0x10]
call fcn.00405524
mov esi, eax
push esi
mov eax, ebx
call fcn.00405524
mov edi, eax
push edi
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x46ae83
push 0
mov eax, dword [ebp - 0x14]
call fcn.00405524
push eax
push edi
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x46ae83
mov edx, 6
mov eax, dword [ebp - 0x14]
call fcn.0046a838
push 0x20
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
test eax, 0x80000000
sete al
test al, al
je 0x46ae83
xor edx, edx
push ebp
push 0x46ae79
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x235]
xor ecx, ecx
mov edx, 0x200
call fcn.00403614
xor eax, eax
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push 0x200
lea eax, [ebp - 0x235]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x40]
test eax, 0x80000000
sete al
test al, al
je 0x46addd
lea eax, [ebp - 0x20]
lea edx, [ebp - 0x235]
mov ecx, 0x201
call fcn.00404e4c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00403344
mov eax, dword [ebp - 0x18]
call fcn.0040506c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
lea eax, [ebp - 0x3a4]
mov edx, dword [ebp - 0x14]
call fcn.00404e64
mov eax, dword [ebp - 0x3a4]
lea ecx, [ebp - 0x24]
mov dl, 0x22
call fcn.00409480
mov eax, dword [ebp - 0x24]
call fcn.0040506c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
cmp dword [ebp - 0x20], 0
jne 0x46ae50
mov eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x1c]
call fcn.0040506c
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x44]
push 0xffffffffffffffff
push esi
mov eax, dword [ebp - 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
push 0
push edi
push esi
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x46ae6f
push esi
call sub.kernel32.dll_DeleteFileW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46ae83
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46af21
lea eax, [ebp - 0x3a4]
call fcn.00404bdc
lea eax, [ebp - 0x3a0]
mov edx, 2
call fcn.004053a8
lea eax, [ebp - 0x398]
call fcn.00404bdc
lea eax, [ebp - 0x394]
call fcn.00405390
lea eax, [ebp - 0x390]
mov edx, 3
call fcn.00404c00
lea eax, [ebp - 0x384]
mov edx, 2
call fcn.004053a8
lea eax, [ebp - 0x37c]
call fcn.00404bdc
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00404c00
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004053a8
lea eax, [ebp - 8]
call fcn.004067d0
lea eax, [ebp - 4]
call fcn.004067d0
ret