Function at 0x402b00
Capabilities:
Check if file exists
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c1c3
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x425040]
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 esi, edx
mov ebx, ecx
mov dword [ebp - 0x274], ebx
test ebx, ebx
je 0x402fff
cmp word [ebx], 0x30
je 0x402fff
test esi, esi
je 0x402fff
cmp word [esi], 0x30
je 0x402fff
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ebx
call edi
test eax, eax
je 0x402fff
push esi
call edi
test eax, eax
jne 0x40301d
push ecx
mov edi, esp
mov dword [ebp - 0x268], esp
mov dword [ebp - 0x270], edi
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x403079
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, esi
mov dword [ebp - 4], 0
shr eax, 0x10
mov dword [ebp - 0x298], eax
test eax, eax
jne 0x402bc3
movzx eax, si
mov ecx, edi
push eax
call fcn.004033f0
jmp 0x402be8
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402bd0
sub ecx, edx
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00402600
push ecx
mov dword [ebp - 4], 1
mov edi, esp
mov dword [ebp - 0x264], edi
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x403083
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
mov eax, ebx
mov byte [ebp - 4], 2
shr eax, 0x10
mov dword [ebp - 0x270], eax
test eax, eax
jne 0x402c31
movzx eax, bx
mov ecx, edi
push eax
call fcn.004033f0
jmp 0x402c4e
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402c36
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.00402600
mov byte [ebp - 4], 1
mov dword [ebp - 4], 0xffffffff
call fcn.004023d0
add esp, 8
test eax, eax
jne 0x402fb2
lea eax, [ebp - 0x268]
mov dword [ebp - 0x26c], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x40308d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x268], eax
cmp dword [ebp - 0x298], 0
mov dword [ebp - 4], 3
jne 0x402cb3
movzx eax, si
lea ecx, [ebp - 0x268]
push eax
call fcn.004033f0
jmp 0x402cdc
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402cc0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x268]
call fcn.00402600
lea eax, [ebp - 0x264]
mov dword [ebp - 4], 4
mov dword [ebp - 0x26c], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x403097
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x270], 0
jne 0x402d2a
movzx eax, bx
lea ecx, [ebp - 0x264]
push eax
call fcn.004033f0
jmp 0x402d4c
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402d30
sub ecx, edx
sar ecx, 1
push ecx
push ebx
lea ecx, [ebp - 0x264]
call fcn.00402600
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 7
call fcn.00402200
lea ecx, [ebp - 0x268]
call fcn.00402200
push ecx
mov esi, esp
mov dword [ebp - 0x26c], esi
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402520
add eax, 0x10
mov dword [esi], eax
call fcn.004020e0
mov dword [ebp - 0x26c], esi
mov ebx, eax
mov ecx, dword [ebp - 0x268]
add ecx, 0xfffffff0
call fcn.00402520
add eax, 0x10
mov dword [esi], eax
call fcn.004020e0
mov edi, eax
mov dword [ebp - 0x290], 2
add esp, 4
mov dword [ebp - 0x28c], ebx
mov eax, 0x614
mov dword [ebp - 0x288], edi
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0
push eax
mov dword [ebp - 0x282], 0
mov dword [ebp - 0x27e], 0
mov dword [ebp - 0x27a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push ebx
mov esi, eax
call fcn.0040a2df
add esp, 4
push edi
call fcn.0040a2df
add esp, 4
test esi, esi
jne 0x402fb9
cmp dword [ebp - 0x282], esi
jne 0x402fb9
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x264]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402e52
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, ebx
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402e76
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x26c], eax
call fcn.00401ec0
mov ecx, eax
test ecx, ecx
je 0x4030a1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
mov edx, dword [ebp - 0x274]
mov dword [ebp - 4], 8
cmp dword [ebp - 0x270], 0
jne 0x402ed1
movzx eax, dx
lea ecx, [ebp - 0x264]
push eax
call fcn.004033f0
jmp 0x402ef2
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402ed6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x264]
call fcn.00402600
lea ecx, [ebp - 0x264]
mov dword [ebp - 4], 9
call fcn.00402200
push ecx
mov esi, esp
mov dword [ebp - 0x26c], esi
mov ecx, dword [ebp - 0x264]
lea ecx, [ecx - 0x10]
call fcn.00402520
add eax, 0x10
mov dword [esi], eax
call fcn.004020e0
mov edi, eax
mov dword [ebp - 0x290], 3
add esp, 4
mov dword [ebp - 0x28c], edi
mov eax, 0x614
mov dword [ebp - 0x288], 0
mov word [ebp - 0x284], ax
lea eax, [ebp - 0x294]
mov dword [ebp - 0x294], 0
push eax
mov dword [ebp - 0x282], 0
mov dword [ebp - 0x27e], 0
mov dword [ebp - 0x27a], 0
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
push edi
mov esi, eax
call fcn.0040a2df
mov dword [ebp - 4], 0xffffffff
add esp, 4
mov edx, dword [ebp - 0x264]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402fb2
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
jmp 0x403001
mov byte [ebp - 4], 6
or ebx, 0xffffffff
mov edx, dword [ebp - 0x264]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x402fdd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x268]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x402fff
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
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.0040a26b
mov esp, ebp
pop ebp
ret
push 0x250
lea eax, [ebp - 0x260]
push 0
push eax
call fcn.0040b8f0
add esp, 0xc
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402fff
test byte [ebp - 0x260], 0x10
mov edx, esi
mov ecx, ebx
je 0x403067
call fcn.00403c70
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x403001
call fcn.00403750
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, esi
jmp 0x403001
push 0x80004005
call fcn.00401d90
push 0x80004005
call fcn.00401d90
push 0x80004005
call fcn.00401d90
push 0x80004005
call fcn.00401d90
push 0x80004005
call fcn.00401d90
int3