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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b5b4
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x423018]
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 + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc4], eax
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x2c], ax
push ebx
mov eax, 0x41d43c
lea esi, [ebp - 0x2c]
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xc0], edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.004042c0
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
mov ebx, 1
mov byte [ebp - 4], bl
test byte [0x423c0c], bl
jne 0x402be8
or dword [0x423c0c], ebx
mov byte [ebp - 4], 2
call fcn.0040db20
push 0x41c620
call fcn.0041946d
add esp, 4
mov byte [ebp - 4], bl
xor ebx, ebx
cmp dword [0x423c44], ebx
je 0x402c43
mov edx, dword [0x423c10]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
push 0x423c34
or eax, 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401cf0
mov eax, dword [0x423c10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push ebx
mov eax, edi
call fcn.00403e20
push eax
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
je 0x402c84
mov dword [ebp - 0xbc], 0x101
jmp 0x402ed0
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x402c5c
mov ecx, dword [ebp - 0x48]
push ecx
call esi
add esp, 4
xor edx, edx
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], dx
cmp dword [ebp - 0x18], edi
jb 0x402c7a
mov eax, dword [ebp - 0x2c]
push eax
call esi
add esp, 4
mov eax, 0x300
jmp 0x402f60
sub esp, 0x1c
mov ecx, esp
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0x14], 0xf
mov dword [ebp - 0xc8], esp
mov byte [ecx], bl
push 0x423098
or eax, 0xffffffff
xor ebx, ebx
call fcn.00401ec0
mov ecx, edi
call fcn.00402f80
test al, al
jne 0x402cc4
mov dword [ebp - 0xbc], 0x1007
jmp 0x402ed0
mov ecx, dword [ebp - 0xc0]
push ecx
lea edx, [ebp - 0xb8]
push edx
call fcn.00404c90
add esp, 8
mov ecx, eax
mov eax, 0x423098
lea ebx, [ebp - 0x80]
mov byte [ebp - 4], 3
call fcn.00404d50
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 4
call fcn.00401840
mov ecx, eax
lea eax, [ebp - 0x48]
lea ebx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.00404d90
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x402d7c
cmp dword [ebp - 0x18], 8
jb 0x402d29
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [esi + 0x14], 8
jae 0x402d58
mov eax, dword [esi + 0x10]
inc eax
add eax, eax
push eax
lea ecx, [ebp - 0x2c]
push esi
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
jmp 0x402d5f
mov edx, dword [esi]
mov dword [ebp - 0x2c], edx
mov dword [esi], ebx
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x18], ecx
xor edx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov word [esi], dx
jmp 0x402d7e
xor ebx, ebx
cmp dword [ebp - 0x50], 8
jb 0x402d91
mov eax, dword [ebp - 0x64]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
cmp dword [ebp - 0x88], 8
mov dword [ebp - 0x50], 7
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
jb 0x402dba
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov esi, 0x10
mov dword [ebp - 0x88], 7
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
cmp dword [ebp - 0x6c], esi
jb 0x402dea
mov ecx, dword [ebp - 0x80]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], 0xf
mov dword [ebp - 0x70], ebx
mov byte [ebp - 0x80], bl
cmp dword [ebp - 0xa4], esi
jb 0x402e13
mov edx, dword [ebp - 0xb8]
push edx
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 0x402e1f
lea eax, [ebp - 0x2c]
push ebx
push eax
mov eax, edi
call fcn.00403e20
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp eax, ebx
je 0x402ec6
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402e43
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x402ec6
mov eax, dword [ebp - 0xbc]
mov esi, dword [ebp - 0xc4]
push eax
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00403920
mov dword [ebp - 0xbc], eax
cmp eax, ebx
jne 0x402ed0
mov edi, dword [ebp - 0xc0]
push esi
call fcn.00403a80
test eax, eax
jne 0x402f1d
xor edx, edx
mov byte [ebp - 0xc8], dl
mov ecx, dword [ebp - 0xc8]
push ecx
mov eax, 1
push eax
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0xc8], esp
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edx
push edi
or eax, 0xffffffff
xor ebx, ebx
mov byte [ecx], dl
call fcn.00401ec0
call fcn.00403160
jmp 0x402f1d
mov dword [ebp - 0xbc], 0x103
cmp dword [ebp - 0x1c], 0
je 0x402f1d
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x402ee2
lea eax, [ebp - 0x2c]
push 0
push eax
call dword [sym.imp.MSVCR100.dll__waccess_s]
add esp, 8
test eax, eax
jne 0x402f1d
lea ebx, [ebp - 0x2c]
lea eax, [ebp - 0xb8]
call fcn.004018b0
cmp dword [eax + 0x14], 0x10
jb 0x402f08
mov eax, dword [eax]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 4
lea esi, [ebp - 0xb8]
call fcn.004019d0
mov esi, 8
cmp dword [ebp - 0x34], esi
jb 0x402f34
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], esi
jb 0x402f5a
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 - 0xbc]
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.00419346
mov esp, ebp
pop ebp
ret 8