Function at 0x4474f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48bd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push eax
xor eax, eax
pop eax
je 0x447516
invalid
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 0x10]
cmp eax, esi
jne 0x44752f
mov dword [0x104d5000], 0x104d5000
mov al, byte [0x4c8728]
push esi
lea ecx, [ebp - 0x20]
mov byte [0x4c8ca0], 1
mov byte [ebp - 0x20], al
call fcn.004017b0
mov ecx, dword [0x491cd4]
push ecx
push esi
push 0x4c8728
lea ecx, [ebp - 0x20]
call fcn.004094e0
mov edi, 0x4b0b48
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 4], esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b0b48
lea ecx, [ebp - 0x20]
call fcn.0041d290
mov edx, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push edx
push esi
push 0x4c8b60
call fcn.00412f80
mov edi, 0x4b0b48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b0b48
lea ecx, [ebp - 0x20]
call fcn.0041d290
mov eax, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push eax
push esi
push 0x4c8c40
call fcn.00412f80
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x4475ce
mov eax, 0x48d810
mov ebx, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push eax
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, esi
jne 0x4475e8
mov eax, 0x48d810
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push eax
call esi
mov ecx, dword [0x491cd4]
push ecx
push 0
push 0x4c8728
lea ecx, [ebp - 0x20]
call fcn.004094e0
mov edi, 0x4b0b48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b0b48
lea ecx, [ebp - 0x20]
call fcn.0041d290
mov edx, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push edx
push 0
push 0x4c8b60
call fcn.00412f80
mov edi, 0x4b0b48
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x4b0b48
lea ecx, [ebp - 0x20]
call fcn.0041d290
mov eax, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push eax
push 0
push 0x4c8c20
call fcn.00412f80
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x447678
mov eax, 0x48d810
push 0x80
push eax
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x44768c
mov eax, 0x48d810
push eax
call esi
mov ecx, dword [0x491cd4]
push ecx
push 0
push 0x4c8728
lea ecx, [ebp - 0x20]
call fcn.004094e0
mov edi, 0x4b0b48
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x491cd4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [ebp - 0x18]
sub edx, ecx
cmp edx, esi
ja 0x4476ca
call fcn.00479494
test esi, esi
jbe 0x44770a
mov eax, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
lea ebx, [eax + esi]
push ebx
call fcn.00401850
test al, al
je 0x44770a
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov ecx, esi
mov esi, 0x4b0b48
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x20]
call fcn.004099d0
mov eax, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push eax
push 0
push 0x4c8b60
call fcn.00412f80
mov edi, 0x4b0b48
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x491cd4]
sub ecx, edx
cmp ecx, esi
ja 0x447744
call fcn.00479494
test esi, esi
jbe 0x447785
mov edx, dword [ebp - 0x18]
push 0
lea ecx, [ebp - 0x20]
lea ebx, [edx + esi]
push ebx
call fcn.00401850
test al, al
je 0x447785
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov esi, 0x4b0b48
lea edi, [edx + eax]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ebx
mov byte [ecx + ebx], 0
mov edx, dword [0x491cd4]
lea ecx, [ebp - 0x20]
push edx
push 0
push 0x4c8be0
call fcn.00412f80
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4477a7
mov eax, 0x48d810
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4477bf
mov eax, 0x48d810
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x4477f8
mov al, byte [ecx - 1]
test al, al
je 0x4477ee
cmp al, 0xff
je 0x4477ee
dec al
mov byte [ecx - 1], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
push ecx
call fcn.00485078
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret