Function at 0x480b08
Capabilities:
Delete file

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffacc
mov byte [esp], al
xor ebx, ebx
mov esi, dword [0x4c2440]
mov eax, esi
call fcn.004066d0
mov eax, esi
call fcn.004066d0
mov edx, eax
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
call fcn.004a9904
mov ebp, eax
mov edi, esi
cmp di, 0xb
jb 0x480c37
mov eax, edi
sub ax, 0xa
mov word [esp + 2], ax
cmp byte [esp], 0
je 0x480b96
movzx eax, word [esp + 2]
mov eax, dword [ebp + eax*4 + 0x1ac]
call fcn.004aed10
push eax
mov ax, 0x36b
call fcn.004aa600
pop edx
call fcn.004ae1b0
mov eax, dword [0x4bedb0]
mov edx, 0x78
call fcn.004b12a8
test al, al
je 0x4810b0
movzx ebx, word [esp + 2]
cmp dword [ebp + ebx*4 + 0x1ac], 0
je 0x480bef
movzx eax, word [esp + 2]
mov eax, dword [ebp + eax*4 + 0x1ac]
push eax
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x480bda
call sub.kernel32.dll_GetLastError_1
call fcn.004ae200
mov eax, dword [0x4bedb0]
mov edx, 1
call fcn.004b12a8
mov eax, dword [ebp + ebx*4 + 0x1ac]
call fcn.004b8480
xor eax, eax
mov dword [ebp + ebx*4 + 0x1ac], eax
mov eax, esi
call fcn.00480908
dec byte [ebp + 0x200]
cmp byte [ebp + 0x200], 0
jbe 0x480c19
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
mov edx, dword [0x4c2434]
call fcn.0041025c
jmp 0x480c27
mov ax, 0x12e
call fcn.004aa600
call fcn.00484bbc
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov byte [eax + 0x163], 1
mov bl, 1
cmp di, 3
jne 0x480cee
cmp byte [esp], 0
je 0x480c72
mov ax, 0x36b
call fcn.004aa600
mov edx, dword [ebp + 0x1a4]
call fcn.004ae1b0
mov eax, dword [0x4bedb0]
mov edx, 0x78
call fcn.004b12a8
test al, al
je 0x4810b0
call fcn.00480ac0
test al, al
je 0x4810b0
mov ebx, dword [ebp + 0x1a4]
test ebx, ebx
je 0x480cc5
push ebx
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x480cb2
call sub.kernel32.dll_GetLastError_1
call fcn.004ae200
mov eax, dword [0x4bedb0]
mov edx, 1
call fcn.004b12a8
mov eax, dword [ebp + 0x1a4]
call fcn.004b8480
xor eax, eax
mov dword [ebp + 0x1a4], eax
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov byte [eax + 0x163], 1
mov eax, esi
call fcn.00480908
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
mov edx, dword [0x4c2434]
call fcn.0041025c
mov bl, 1
cmp di, 4
jne 0x480da5
cmp byte [esp], 0
je 0x480d29
mov ax, 0x36b
call fcn.004aa600
mov edx, dword [ebp + 0x1a8]
call fcn.004ae1b0
mov eax, dword [0x4bedb0]
mov edx, 0x78
call fcn.004b12a8
test al, al
je 0x4810b0
call fcn.00480ac0
test al, al
je 0x4810b0
mov ebx, dword [ebp + 0x1a8]
test ebx, ebx
je 0x480d7c
push ebx
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x480d69
call sub.kernel32.dll_GetLastError_1
call fcn.004ae200
mov eax, dword [0x4bedb0]
mov edx, 1
call fcn.004b12a8
mov eax, dword [ebp + 0x1a8]
call fcn.004b8480
xor eax, eax
mov dword [ebp + 0x1a8], eax
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov byte [eax + 0x163], 1
mov eax, esi
call fcn.00480908
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
mov edx, dword [0x4c2434]
call fcn.0041025c
mov bl, 1
cmp di, 2
jne 0x480e5c
cmp byte [esp], 0
je 0x480de0
mov ax, 0x36b
call fcn.004aa600
mov edx, dword [ebp + 0x1ac]
call fcn.004ae1b0
mov eax, dword [0x4bedb0]
mov edx, 0x78
call fcn.004b12a8
test al, al
je 0x4810b0
call fcn.00480ac0
test al, al
je 0x4810b0
mov ebx, dword [ebp + 0x1ac]
test ebx, ebx
je 0x480e33
push ebx
call sub.kernel32.dll_DeleteFileA_1
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x480e20
call sub.kernel32.dll_GetLastError_1
call fcn.004ae200
mov eax, dword [0x4bedb0]
mov edx, 1
call fcn.004b12a8
mov eax, dword [ebp + 0x1ac]
call fcn.004b8480
xor eax, eax
mov dword [ebp + 0x1ac], eax
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov byte [eax + 0x163], 1
mov eax, esi
call fcn.00480908
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
mov edx, dword [0x4c2434]
call fcn.0041025c
mov bl, 1
test di, di
jne 0x4810b0
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
call fcn.00410310
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp + 0x18], 0xff
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea edx, [esp + 4]
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
call fcn.00410348
mov ax, 0x36b
call fcn.004aa600
lea edx, [esp + 0x2c]
call fcn.004ae1b0
mov edx, dword [0x4bedb0]
lea eax, [esp + 0x12c]
call fcn.004b81b0
mov esi, 0x78
cmp byte [ebp], 0
jle 0x480f56
mov edx, dword [0x4beb38]
mov ax, word [ebp + 2]
call fcn.00481a50
call fcn.004a9974
mov edi, eax
test edi, edi
jbe 0x480f56
mov dword [esp + 0x52c], edi
xor eax, eax
mov dword [esp + 0x530], eax
fild qword [esp + 0x52c]
add esp, 0xfffffff8
fistp qword [esp]
wait
mov ax, 0x36a
call fcn.004aa600
call fcn.004ae0e4
mov edx, dword [0x4beb38]
mov eax, dword [0x4bedb0]
call fcn.004ae1b0
lea eax, [esp + 0x12c]
call fcn.004ab7d8
lea eax, [esp + 0x12c]
call fcn.004ab7d8
mov eax, dword [0x4bedb0]
push eax
lea eax, [esp + 0x130]
push eax
call sub.kernel32.dll_lstrcatA
mov esi, 0x77
lea eax, [esp + 0x12c]
mov edx, esi
call fcn.004b12a8
test al, al
je 0x4810b0
mov bx, word [ebp + 0x208]
test bx, bx
jle 0x480fd7
movsx esi, bx
mov eax, dword [0x4be754]
mov eax, dword [eax + esi*4 - 4]
xor edx, edx
mov dword [eax + 0x80], edx
movsx edx, bx
mov ecx, dword [0x4be754]
xor edx, edx
mov dword [eax + 0x84], edx
movsx edx, bx
mov ecx, dword [0x4be754]
mov eax, dword [eax + 0xc]
mov edx, dword [0x4be9d4]
mov dword [eax + 0x6c], edx
mov eax, dword [0x4be754]
mov eax, dword [eax + esi*4 - 4]
call fcn.0046c13c
push 0
push 0
push 0x10
mov eax, dword [0x4be754]
mov eax, dword [eax + esi*4 - 4]
mov eax, dword [eax]
push eax
call sub.user32.dll_PostMessageA
cmp byte [ebp], 0
jle 0x480ff6
mov edx, dword [0x4beb38]
mov ax, word [ebp + 2]
call fcn.00481a50
mov eax, dword [0x4beb38]
call fcn.004a99f0
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov eax, dword [eax + 0x164]
cmp ebp, eax
jne 0x481025
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov edx, dword [ebp + 0x204]
mov dword [eax + 0x164], edx
xor edx, edx
mov eax, ebp
call fcn.004a9830
jmp 0x481054
test eax, eax
je 0x481054
mov edx, dword [eax + 0x204]
cmp ebp, edx
jne 0x48104a
mov edx, dword [edx + 0x204]
mov dword [eax + 0x204], edx
xor edx, edx
mov eax, ebp
call fcn.004a9830
jmp 0x481054
mov eax, dword [eax + 0x204]
test eax, eax
jne 0x481029
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
call fcn.00410310
mov edx, eax
mov eax, dword [0x4bebfc]
mov eax, dword [eax]
call fcn.0041025c
mov eax, dword [0x4bef50]
mov eax, dword [eax]
mov byte [eax + 0x163], 1
xor eax, eax
call fcn.00482388
test bx, bx
jle 0x4810ae
mov eax, dword [0x4be810]
mov byte [eax], 1
push 0
push 0
movsx eax, bx
mov edx, dword [0x4be754]
mov eax, dword [edx + eax*4 - 4]
mov eax, dword [eax]
push eax
call sub.user32.dll_InvalidateRect
call fcn.00427d08
mov bl, 1
mov eax, ebx
add esp, 0x534
pop ebp
pop edi
pop esi
pop ebx
ret