Function at 0x4a9d1c
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x11
push 0
push 0
dec ecx
jne 0x4a9d24
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x4aa22c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
mov ecx, dword [0x4b88b4]
mov edx, 0x4aa248
call fcn.004060e4
mov ecx, dword [ebp - 0x14]
mov edx, 0x4aa25c
mov eax, esi
call fcn.004a6644
mov eax, dword [ebp - 0x10]
mov edx, dword [0x4b2170]
mov edx, dword [edx]
call fcn.004063b4
je 0x4a9db2
push 0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
mov ecx, dword [0x4b88b4]
mov edx, 0x4aa274
call fcn.004060e4
mov ecx, dword [ebp - 0x1c]
mov edx, 0x4aa25c
mov eax, esi
call fcn.004a6644
mov eax, dword [ebp - 0x18]
mov edx, dword [0x4b2170]
mov edx, dword [edx]
call fcn.004063b4
jne 0x4a9dc5
mov byte [0x4b887c], 1
mov eax, esi
call fcn.004a9444
jmp 0x4aa1d4
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [0x4b88b4]
mov edx, 0x4aa248
call fcn.004060e4
mov ecx, dword [ebp - 0x24]
mov edx, 0x4aa25c
mov eax, esi
call fcn.004a6644
mov edx, dword [ebp - 0x20]
mov ecx, 0x4aa288
mov eax, esi
call fcn.004a7170
mov ebx, eax
push 0
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
mov ecx, dword [0x4b88b4]
mov edx, 0x4aa274
call fcn.004060e4
mov ecx, dword [ebp - 0x2c]
mov edx, 0x4aa25c
mov eax, esi
call fcn.004a6644
mov edx, dword [ebp - 0x28]
mov ecx, 0x4aa288
mov eax, esi
call fcn.004a7170
mov dword [ebp - 4], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4aa070
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4aa070
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
mov edi, eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
cmp edi, eax
jne 0x4aa070
mov dl, 1
mov eax, dword [0x419c58]
call fcn.0041e16c
mov dword [0x4b8884], eax
jmp 0x4aa05f
push dword [0x4b8898]
push 0x4aa298
push dword [0x4b88b4]
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x38]
push 0x4aa2c4
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004061c8
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x30]
call fcn.004a5824
mov eax, dword [ebp - 0x30]
push eax
lea ecx, [ebp - 0x3c]
xor edx, edx
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x3c]
pop eax
call fcn.004063b4
jne 0x4a9fa8
push 0
push dword [0x4b8898]
push 0x4aa2dc
lea ecx, [ebp - 0x44]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x44]
push 0x4aa2f4
lea eax, [ebp - 0x40]
mov edx, 4
call fcn.004061c8
mov eax, dword [ebp - 0x40]
call fcn.00405ccc
push eax
push dword [0x4b8898]
push 0x4aa298
push dword [0x4b88b4]
lea ecx, [ebp - 0x4c]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x4c]
push 0x4aa2c4
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.004061c8
mov eax, dword [ebp - 0x48]
call fcn.00405ccc
push eax
call sub.kernel32.dll_CopyFileW
push dword [0x4b8898]
push 0x4aa2dc
lea ecx, [ebp - 0x54]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x54]
push 0x4aa2f4
lea eax, [ebp - 0x50]
mov edx, 4
call fcn.004061c8
mov eax, dword [ebp - 0x50]
xor edx, edx
call fcn.0040c1f8
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
jmp 0x4aa05f
push dword [0x4b8898]
push 0x4aa298
push dword [0x4b88b4]
lea ecx, [ebp - 0x5c]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x5c]
push 0x4aa2c4
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.004061c8
mov eax, dword [ebp - 0x58]
xor edx, edx
call fcn.0040c1f8
push dword [0x4b8898]
push 0x4aa298
push dword [0x4b88b4]
lea ecx, [ebp - 0x64]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x64]
push 0x4aa2c4
lea eax, [ebp - 0x60]
mov edx, 5
call fcn.004061c8
mov eax, dword [ebp - 0x60]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00405ccc
push eax
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 9], al
lea ecx, [ebp - 0x68]
xor edx, edx
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x68]
mov eax, dword [0x4b8884]
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor edx, edx
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x48]
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x48]
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jg 0x4a9e86
jmp 0x4aa09b
mov eax, ebx
call fcn.00403d18
mov eax, dword [ebp - 4]
call fcn.00403d18
mov edx, 0x4aa30c
mov eax, esi
call fcn.004a9058
mov eax, dword [esi + 0x3c0]
call fcn.00450c94
jmp 0x4aa1d4
mov eax, dword [0x4b8884]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4aa1bf
mov eax, esi
call fcn.004a846c
mov eax, dword [esi + 0x3c0]
call fcn.00450c94
mov byte [0x4b8881], 1
mov edx, 0x4aa334
mov eax, dword [esi + 0x3b8]
call fcn.004506a4
mov eax, dword [esi + 0x3b4]
call fcn.00450c9c
mov eax, dword [esi + 0x3b0]
call fcn.00450c9c
mov eax, dword [esi + 0x394]
call fcn.00450c94
mov eax, dword [esi + 0x3d0]
call fcn.00450c94
mov eax, dword [esi + 0x3d4]
call fcn.00450c94
mov byte [0x4b887e], 1
lea eax, [ebp - 0x70]
mov ecx, 0x4aa354
mov edx, dword [0x4b8898]
call fcn.004060e4
mov edx, dword [ebp - 0x70]
lea eax, [ebp - 0x6c]
call fcn.00405e8c
mov eax, dword [ebp - 0x6c]
push eax
push dword [0x4b88b4]
lea ecx, [ebp - 0x7c]
xor edx, edx
mov eax, dword [0x4b8884]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x7c]
push 0x4aa2c4
lea eax, [ebp - 0x78]
mov edx, 3
call fcn.004061c8
mov edx, dword [ebp - 0x78]
lea eax, [ebp - 0x74]
call fcn.00405e8c
mov eax, dword [ebp - 0x74]
push eax
push dword [0x4b8894]
lea ecx, [ebp - 0x88]
xor edx, edx
mov eax, dword [0x4b8884]
mov ebx, dword [eax]
call dword [ebx + 0xc]
push dword [ebp - 0x88]
push 0x4aa2c4
lea eax, [ebp - 0x84]
mov edx, 3
call fcn.004061c8
mov edx, dword [ebp - 0x84]
lea eax, [ebp - 0x80]
call fcn.00405e8c
mov edx, dword [ebp - 0x80]
mov eax, dword [esi + 0x3ac]
pop ecx
call fcn.00480004
mov byte [0x4b8881], 0
mov byte [0x4b887c], 1
mov eax, esi
call fcn.004a9444
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aa233
lea eax, [ebp - 0x88]
mov edx, 2
call fcn.00405c38
lea eax, [ebp - 0x80]
call fcn.00405834
lea eax, [ebp - 0x7c]
mov edx, 2
call fcn.00405c38
lea eax, [ebp - 0x74]
call fcn.00405834
lea eax, [ebp - 0x70]
call fcn.00405c30
lea eax, [ebp - 0x6c]
call fcn.00405834
lea eax, [ebp - 0x68]
mov edx, 0x17
call fcn.00405c38
ret