Function at 0x4010a6
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3234
call fcn.0044ddb0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x7fe
push edi
mov dword [eax + 0x24], ebx
lea eax, [ebp - 0xc0e]
push ebx
push eax
mov word [ebp - 0xc10], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
lea esi, [ebp - 0xc10]
call fcn.0040a22f
pop ecx
mov eax, esi
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x4010fd
mov word [eax], bx
push edi
lea eax, [ebp - 0x1816]
push ebx
push eax
mov word [ebp - 0x1818], bx
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x3ff
push edi
push ecx
push 0xc0
call fcn.00406cd0
pop ecx
push eax
lea eax, [ebp - 0xc10]
push eax
lea eax, [ebp - 0x1818]
call fcn.0040a2de
lea eax, [ebp - 0x1818]
add esp, 0xc
push eax
call fcn.0040a157
test eax, eax
pop ecx
jne 0x40117c
push dword [ebp + 0xc]
lea esi, [ebp - 0xc10]
call fcn.0040a22f
pop ecx
push edi
push ecx
push 0xc0
call fcn.00406cd0
pop ecx
push eax
mov eax, esi
push eax
lea eax, [ebp - 0x1818]
call fcn.0040a2de
add esp, 0xc
lea eax, [ebp - 0x1818]
push eax
push dword [ebp + 8]
call fcn.0040154c
push 0x20e
lea eax, [ebp - 0x40e]
push ebx
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], 0x1388
mov word [ebp - 0x410], bx
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 0xc]
add esp, 0xc
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4011ee
push 0x44f4d0
lea edi, [ebp - 0x410]
call fcn.0040a004
pop ecx
push ebx
mov eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, edi
jmp 0x4011f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x401
lea eax, [ebp - 0x1017]
push ebx
push eax
mov byte [ebp - 0x1018], bl
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1018]
push eax
push esi
call fcn.0040aca5
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1018]
push eax
mov dword [ebp - 8], ebx
call fcn.00445e0f
add esp, 0x10
cmp dword [ebp - 8], ebx
je 0x401489
push 0xbf
mov dword [ebp - 0x10], ebx
call fcn.00406c77
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
mov ebx, dword [ebp - 8]
push 0xffffffffffffffff
push eax
lea esi, [ebp - 0x10]
call fcn.0043a264
mov esi, dword [ebp - 0x10]
add esp, 0x10
test esi, esi
je 0x40147f
jmp 0x401468
push 0x1a14
lea eax, [ebp - 0x3230]
push 0
push eax
call sub.msvcrt.dll_memset
xor eax, eax
add esp, 0xc
inc eax
mov ecx, esi
call fcn.00427363
mov dword [ebp - 4], eax
xor eax, eax
mov ecx, esi
call fcn.00427363
mov dword [ebp - 0xc], eax
push 2
pop eax
mov ecx, esi
call fcn.00427363
mov dword [ebp - 0x38], eax
push 3
pop eax
mov ecx, esi
call fcn.00427363
mov dword [ebp - 0x1c], eax
push 4
pop eax
mov ecx, esi
call fcn.00427363
mov dword [ebp - 0x34], eax
push 7
pop eax
mov ecx, esi
call fcn.0042733f
push edx
push eax
lea ebx, [ebp - 0x1a30]
call fcn.00401003
mov edi, 0x3ff
push edi
lea eax, [ebp - 0x2a30]
push eax
push dword [ebp - 0xc]
call fcn.0040acda
add esp, 0x14
push edi
lea eax, [ebp - 0x3230]
push eax
push dword [ebp - 4]
call fcn.0040acda
add esp, 0xc
mov edi, 0xff
push edi
lea eax, [ebp - 0x2230]
push eax
push dword [ebp - 0x38]
call fcn.0040acda
add esp, 0xc
push edi
lea eax, [ebp - 0x2030]
push eax
push dword [ebp - 0x34]
call fcn.0040acda
add esp, 0xc
lea eax, [ebp - 0x1c30]
push eax
push dword [ebp - 0x1c]
call fcn.0040acf3
pop ecx
pop ecx
push 5
pop eax
mov ecx, esi
call fcn.004272ff
mov dword [ebp - 4], eax
push 5
pop eax
mov ecx, esi
call fcn.0042731f
mov ebx, eax
mov dword [ebp - 0xc], ebx
cmp ebx, 0xf
jle 0x401446
push 3
push 0x44f4dc
push dword [ebp - 4]
call sub.msvcrt.dll_memcmp
add esp, 0xc
test eax, eax
jne 0x4014ae
mov ebx, dword [ebp + 8]
xor edx, edx
cmp dword [ebx + 0x24], edx
je 0x401446
push 7
mov byte [ebp - 0x78], dl
pop ecx
lea edi, [ebp - 0x77]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov byte [ebp - 0x58], dl
push 7
pop ecx
lea edi, [ebp - 0x57]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x200]
call fcn.0044d2f0
add ebx, 4
push 0x100
push ebx
lea ebx, [ebp - 0x200]
call fcn.0044d9d0
mov edi, dword [ebp - 0xc]
add edi, 0xfffffff1
cmp edi, 0x10
pop ecx
pop ecx
jle 0x401446
lea eax, [edi + 0xa]
push eax
lea eax, [ebp - 0x30]
call fcn.0040b60e
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 4]
lea ecx, [eax + 0xf]
push ebx
lea edx, [eax + 3]
push ecx
lea eax, [edi - 0x10]
push eax
lea eax, [ebp - 0x200]
call fcn.0044d990
lea esi, [ebp - 0x200]
call fcn.0044d330
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
lea eax, [eax + ecx - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x58]
push eax
call sub.msvcrt.dll_memcmp
add esp, 0x1c
test eax, eax
jne 0x401443
mov byte [ebx + edi - 0x10], al
lea eax, [ebp - 0x1e30]
push eax
push ebx
call fcn.0040acf3
pop ecx
pop ecx
mov esi, dword [ebp - 0x10]
push dword [ebp + 0xc]
mov eax, 0x104
lea edi, [ebp - 0x1a28]
call fcn.00409f85
pop ecx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x3230]
push edx
call dword [eax]
push esi
call fcn.00427117
cmp eax, 0x64
pop ecx
je 0x401270
mov edi, esi
call fcn.00426e79
mov eax, dword [ebp - 8]
call fcn.0044577a
xor ebx, ebx
cmp word [ebp - 0x410], bx
je 0x40149f
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x30]
call fcn.0040b671
pop edi
pop esi
pop ebx
leave
ret 8
xor eax, eax
xor ecx, ecx
mov dword [ebp - 0x18], ecx
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x18]
push eax
push ecx
push ecx
lea eax, [ebp - 0x24]
push eax
mov eax, 0x45ec00
mov dword [ebp - 0x24], ebx
call fcn.00407687
cmp dword [ebp - 0x14], 0
je 0x401446
mov edi, dword [ebp - 0x18]
mov eax, 0xfe
cmp edi, eax
jbe 0x4014f2
mov edi, eax
xor ebx, ebx
push 0x100
lea eax, [ebp - 0x17f]
push ebx
push eax
mov byte [ebp - 0x180], bl
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push dword [ebp - 0x14]
lea eax, [ebp - 0x180]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [ebp - 0x1e30]
push eax
lea eax, [ebp - 0x180]
push eax
mov byte [ebp + edi - 0x180], bl
call fcn.0040acf3
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401446