Function at 0x402b00
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x419dc8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x421018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov esi, edx
mov dword [ebp - 0x54], eax
xor eax, eax
xor edx, edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], eax
mov word [ebp - 0x2c], dx
lea edi, [ebp - 0x48]
mov dword [ebp - 4], eax
call fcn.004034f0
mov edi, eax
lea eax, [ebp - 0x2c]
cmp eax, edi
je 0x402bcd
cmp dword [ebp - 0x18], 8
jb 0x402b72
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], dx
cmp dword [edi + 0x14], 8
jae 0x402ba3
mov eax, dword [edi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x2c]
push edi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x402bae
mov edx, dword [edi]
mov dword [ebp - 0x2c], edx
mov dword [edi], 0
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [edi + 0x14]
mov dword [ebp - 0x18], ecx
xor edx, edx
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], dx
mov byte [ebp - 4], 0
cmp dword [ebp - 0x34], 8
jb 0x402be4
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402bf0
lea eax, [ebp - 0x2c]
push 0
push eax
mov eax, ebx
call fcn.004037d0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x402cc3
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402c15
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402cc3
mov ebx, dword [ebp - 0x54]
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004030d0
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x402cca
mov edi, dword [ebp - 0x58]
push esi
call fcn.00403220
test eax, eax
jne 0x402d05
mov ecx, dword [esi + 0x18]
push 0xffffffffffffffff
xor ebx, ebx
push ecx
lea edi, [eax + 1]
mov byte [ebp - 0x5c], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x58]
push edx
or eax, 0xffffffff
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x3c], 0xf
mov dword [ebp - 0x40], ebx
mov byte [ebp - 0x50], bl
call fcn.00401f40
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x50]
mov edx, esi
mov byte [ebp - 4], 2
call fcn.00404eb0
push eax
lea ecx, [ebp - 0x60]
push ecx
push esi
call fcn.004047c0
cmp dword [ebp - 0x3c], 0x10
jb 0x402cb7
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x402d05
mov dword [ebp - 0x54], 0x103
cmp dword [ebp - 0x1c], 0
je 0x402d05
mov eax, dword [ebp - 0x2c]
mov esi, 8
cmp dword [ebp - 0x18], esi
jae 0x402ce0
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x402d05
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x402cfb
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll__wremove]
add esp, 4
cmp dword [ebp - 0x18], 8
jb 0x402d18
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, dword [ebp - 0x54]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00417cae
mov esp, ebp
pop ebp
ret 8