Function at 0x4765ae
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x476846
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
mov word [eax + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x50], 1
xor eax, eax
push ebp
push 0x476824
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0xc]
call fcn.00477270
test eax, eax
jle 0x47680f
mov eax, dword [ebp - 0xc]
call fcn.00477270
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov ecx, 1
mov edx, dword [0x475840]
call fcn.00406af4
add esp, 4
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], 0
mov dword [eax + 0x34], 0
mov eax, dword [ebp - 0xc]
call fcn.00477270
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4764ab
inc ebx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.00477514
mov edx, dword [eax + 0x24]
mov eax, dword [eax + 0x20]
mov ecx, dword [ebp - 0xc]
add dword [ecx + 0x28], eax
adc dword [ecx + 0x2c], edx
inc dword [ebp - 0x18]
dec ebx
jne 0x47648b
mov eax, dword [ebp - 0xc]
xor edx, edx
mov dword [eax + 0x60], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x11], 0
xor eax, eax
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x31], 0
lea eax, [ebp - 4]
xor edx, edx
call fcn.004055c8
jmp 0x4767ba
xor eax, eax
push ebp
push 0x4765bb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.0042030c
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
inc dword [ebp - 0x1c]
inc dword [ebp - 0x18]
cmp byte [ebp - 0x31], 0
je 0x476554
mov byte [ebp - 0x31], 0
mov edx, dword [ebp - 0x18]
dec edx
mov eax, dword [ebp - 0xc]
call fcn.00477514
mov edx, dword [eax + 0xc]
lea eax, [ebp - 8]
call fcn.004055c8
push 0x80
mov eax, dword [ebp - 8]
call fcn.00405600
push eax
call sub.kernel32.dll_SetFileAttributesW
mov eax, dword [ebp - 8]
call fcn.00405600
push eax
call sub.kernel32.dll_DeleteFileW
cmp dword [ebp - 4], 0
je 0x4765ae
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x50], 0
xor eax, eax
push ebp
push 0x4765a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x18]
dec edx
mov eax, dword [ebp - 0xc]
call fcn.00477514
mov ecx, dword [ebp - 4]
mov edx, 1
call fcn.00475bd4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4765ae
lea eax, [ebp - 4]
xor edx, edx
call fcn.004055c8
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x50], 1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4767ba
mov eax, dword [ebp - 0xc]
call fcn.00477270
cmp eax, dword [ebp - 0x18]
jg 0x4764e2
cmp dword [ebp - 0x1c], 0
jne 0x4767ee
mov eax, dword [ebp - 0x10]
call fcn.0042030c
push edx
push eax
mov eax, dword [ebp - 0x10]
call fcn.00420390
mov byte [ebp - 0x11], 1
call fcn.00404674
jmp 0x47682b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004781e0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00477974
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00477cd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47682b
mov eax, dword [ebp - 0xc]
mov byte [eax + 0x50], 0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47684d
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040556c
ret