Function at 0x4a0608
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff0c
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0x4e23c8
call fcn.00479eb8
mov edx, dword [esi]
cmp edx, dword [esi + 4]
sete cl
and ecx, 1
test cl, cl
je 0x4a0647
xor eax, eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x4a0ce7
mov ecx, dword [ebx]
cmp ecx, dword [ebx + 4]
je 0x4a0670
mov byte [ebp - 0x85], 0
mov eax, dword [ebx]
mov dword [ebp - 0x8c], eax
mov edx, dword [ebp - 0x8c]
mov cl, byte [ebp - 0x85]
mov byte [edx], cl
mov eax, dword [ebx]
mov dword [ebx + 4], eax
push esi
call fcn.004a959c
pop ecx
test al, al
je 0x4a0cc7
mov word [ebp - 0x74], 8
mov word [ebp - 0x74], 0x14
lea edx, [ebp - 0x18]
push edx
call fcn.004058c0
pop ecx
add dword [ebp - 0x68], 4
mov word [ebp - 0x74], 0x20
mov word [ebp - 0x74], 0x2c
lea ecx, [ebp - 0x30]
push ecx
call fcn.004058c0
pop ecx
add dword [ebp - 0x68], 4
mov word [ebp - 0x74], 0x20
mov word [ebp - 0x74], 0x38
lea eax, [ebp - 0x48]
push eax
call fcn.004058c0
pop ecx
add dword [ebp - 0x68], 4
mov word [ebp - 0x74], 0x20
mov word [ebp - 0x74], 0x44
lea edx, [ebp - 0x60]
push edx
call fcn.004058c0
pop ecx
add dword [ebp - 0x68], 4
mov word [ebp - 0x74], 0x20
lea ecx, [ebp - 0x18]
push ecx
push 0
call fcn.004a98c4
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x14]
sete dl
and edx, 1
test dl, dl
je 0x4a0846
xor eax, eax
push eax
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x60]
mov dword [ebp - 0xe4], edx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4a074f
cmp dword [ebp - 0xe4], 0x80
jbe 0x4a0740
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a074f
push dword [ebp - 0xe4]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0xe8], ecx
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4a0792
cmp dword [ebp - 0xe8], 0x80
jbe 0x4a0783
push esi
call fcn.00477a54
pop ecx
jmp 0x4a0792
push dword [ebp - 0xe8]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xec], eax
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4a07d5
cmp dword [ebp - 0xec], 0x80
jbe 0x4a07c6
push edi
call fcn.00477a54
pop ecx
jmp 0x4a07d5
push dword [ebp - 0xec]
push edi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0xf0], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xf4], ecx
cmp dword [ebp - 0xf4], 0
je 0x4a082d
cmp dword [ebp - 0xf0], 0x80
jbe 0x4a0819
push dword [ebp - 0xf4]
call fcn.00477a54
pop ecx
jmp 0x4a082d
push dword [ebp - 0xf0]
push dword [ebp - 0xf4]
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x4a0ce7
lea ecx, [ebp - 0x18]
push ecx
push esi
call fcn.004a8f2c
add esp, 8
test al, al
je 0x4a0b6a
push 0x4e1313
call fcn.00479a2c
pop ecx
add eax, 0x4e1313
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0x98]
push eax
push dword [ebp - 0x90]
push 0x4e1313
lea edx, [ebp - 0x30]
push edx
call fcn.0040f7c0
add esp, 0x10
push 0x4e1317
call fcn.00479a2c
pop ecx
add eax, 0x4e1317
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0xa4]
push ecx
push dword [ebp - 0x9c]
push 0x4e1317
lea eax, [ebp - 0x48]
push eax
call fcn.0040f7c0
add esp, 0x10
push ebx
lea edx, [ebp - 0x60]
push edx
lea ecx, [ebp - 0x48]
push ecx
lea eax, [ebp - 0x30]
push eax
lea edx, [ebp - 0x18]
push edx
call fcn.004a92e8
add esp, 0x14
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
cmp ecx, 0xc
jne 0x4a0a2b
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_DeleteFileA
mov al, 1
push eax
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x60]
mov dword [ebp - 0xd0], edx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4a0934
cmp dword [ebp - 0xd0], 0x80
jbe 0x4a0925
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a0934
push dword [ebp - 0xd0]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0xd4], ecx
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4a0977
cmp dword [ebp - 0xd4], 0x80
jbe 0x4a0968
push esi
call fcn.00477a54
pop ecx
jmp 0x4a0977
push dword [ebp - 0xd4]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xd8], eax
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4a09ba
cmp dword [ebp - 0xd8], 0x80
jbe 0x4a09ab
push edi
call fcn.00477a54
pop ecx
jmp 0x4a09ba
push dword [ebp - 0xd8]
push edi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0xdc], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xe0], ecx
cmp dword [ebp - 0xe0], 0
je 0x4a0a12
cmp dword [ebp - 0xdc], 0x80
jbe 0x4a09fe
push dword [ebp - 0xe0]
call fcn.00477a54
pop ecx
jmp 0x4a0a12
push dword [ebp - 0xdc]
push dword [ebp - 0xe0]
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x4a0ce7
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
push eax
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x60]
mov dword [ebp - 0xbc], edx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4a0a73
cmp dword [ebp - 0xbc], 0x80
jbe 0x4a0a64
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a0a73
push dword [ebp - 0xbc]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0xc0], ecx
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4a0ab6
cmp dword [ebp - 0xc0], 0x80
jbe 0x4a0aa7
push esi
call fcn.00477a54
pop ecx
jmp 0x4a0ab6
push dword [ebp - 0xc0]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xc4], eax
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4a0af9
cmp dword [ebp - 0xc4], 0x80
jbe 0x4a0aea
push edi
call fcn.00477a54
pop ecx
jmp 0x4a0af9
push dword [ebp - 0xc4]
push edi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0xc8], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xcc], 0
je 0x4a0b51
cmp dword [ebp - 0xc8], 0x80
jbe 0x4a0b3d
push dword [ebp - 0xcc]
call fcn.00477a54
pop ecx
jmp 0x4a0b51
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x4a0ce7
lea ecx, [ebp - 0x18]
push ecx
call fcn.004a959c
pop ecx
test al, al
je 0x4a0b80
push dword [ebp - 0x18]
call sub.KERNEL32.DLL_DeleteFileA
xor eax, eax
push eax
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 0x50]
sub edx, dword [ebp - 0x60]
mov dword [ebp - 0xa8], edx
mov ebx, dword [ebp - 0x60]
test ebx, ebx
je 0x4a0bc0
cmp dword [ebp - 0xa8], 0x80
jbe 0x4a0bb1
push ebx
call fcn.00477a54
pop ecx
jmp 0x4a0bc0
push dword [ebp - 0xa8]
push ebx
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov ecx, dword [ebp - 0x38]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0xac], ecx
mov esi, dword [ebp - 0x48]
test esi, esi
je 0x4a0c03
cmp dword [ebp - 0xac], 0x80
jbe 0x4a0bf4
push esi
call fcn.00477a54
pop ecx
jmp 0x4a0c03
push dword [ebp - 0xac]
push esi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0xb0], eax
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x4a0c46
cmp dword [ebp - 0xb0], 0x80
jbe 0x4a0c37
push edi
call fcn.00477a54
pop ecx
jmp 0x4a0c46
push dword [ebp - 0xb0]
push edi
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
mov edx, dword [ebp - 8]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0xb4], edx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xb8], ecx
cmp dword [ebp - 0xb8], 0
je 0x4a0c9e
cmp dword [ebp - 0xb4], 0x80
jbe 0x4a0c8a
push dword [ebp - 0xb8]
call fcn.00477a54
pop ecx
jmp 0x4a0c9e
push dword [ebp - 0xb4]
push dword [ebp - 0xb8]
call fcn.004b63b4
add esp, 8
dec dword [ebp - 0x68]
dec dword [ebp - 0x68]
pop eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x4a0ce7
xor eax, eax
mov edx, dword [ebp - 0x84]
mov dword fs:[0], edx
jmp 0x4a0ce7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret