Function at 0x47ede8
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0xd
push 0
push 0
dec ecx
jne 0x47edf1
xchg dword [ebp - 4], ecx
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov ebx, eax
xor eax, eax
push ebp
push 0x47f683
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], edx
mov eax, dword [0x4b0964]
mov eax, dword [eax]
call fcn.00465758
cmp byte [ebx + 0x3a], 0
je 0x47ee3d
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
cmp dword [ebx + 0x1b6], 0xffffffff
jne 0x47f4da
or edx, 0xffffffff
mov eax, ebx
call fcn.0047da94
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x2ab]
call fcn.00404878
cmp dword [ebp - 0x18], 3
je 0x47ee75
cmp dword [ebp - 0x18], 4
jne 0x47eef6
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x30]
mov eax, dword [ebp - 4]
call fcn.00409a1c
mov eax, dword [ebp - 0x30]
call fcn.00404aa0
push eax
mov eax, dword [ebp - 4]
call fcn.00404aa0
mov ecx, eax
pop eax
sub ecx, eax
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.00404d00
push dword [ebp - 0x2c]
lea eax, [ebp - 0x34]
push eax
lea edx, [ebp - 0x38]
mov eax, dword [ebx + 0x19d]
add eax, 0x3e9
call fcn.00409034
mov eax, dword [ebp - 0x38]
mov ecx, 3
mov edx, 2
call fcn.00404d00
push dword [ebp - 0x34]
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 4]
call fcn.00409a1c
push dword [ebp - 0x3c]
lea eax, [ebp - 4]
mov edx, 3
call fcn.00404b60
jmp 0x47efbf
test byte [ebx + 0x35], 0x80
je 0x47efbf
cmp word [ebx + 0x29d], 0
je 0x47ef25
cmp word [ebx + 0x29d], 0
je 0x47efbf
cmp byte [ebx + 0x2af], 1
jne 0x47efbf
lea edx, [ebp - 0x40]
mov eax, dword [ebx + 0x194]
call fcn.00408acc
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
sub eax, 0x41
mov dword [ebx + 0x291], eax
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx + 0x19d]
add eax, 0x3e9
call fcn.00409034
mov eax, dword [ebp - 0x48]
mov ecx, 3
mov edx, 2
call fcn.00404d00
mov ecx, dword [ebp - 0x44]
lea eax, [ebx + 0x174]
mov edx, 0x47f69c
call fcn.00404aec
mov eax, ebx
call fcn.0047e400
sub eax, 0xfffffffe
je 0x47efa7
dec eax
jne 0x47efbf
push 1
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
jmp 0x47efbf
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
mov eax, dword [ebp - 4]
call fcn.004095fc
inc eax
je 0x47f1e9
lea eax, [ebp - 0x4c]
push eax
mov ecx, 3
mov edx, 9
mov eax, dword [ebx + 0x174]
call fcn.00404d00
mov eax, dword [ebp - 0x4c]
mov edx, 1
call fcn.004091ac
mov dword [ebp - 0x1c], eax
cmp byte [ebx + 0x172], 0
je 0x47f018
push 1
mov ecx, 0x2b11
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
movzx eax, byte [0x47f6a8]
mov byte [ebx + 0x2b0], al
mov eax, dword [ebp - 4]
call fcn.004095fc
cmp eax, dword [ebx + 0x1c2]
jne 0x47f086
mov eax, dword [ebp - 0x1c]
dec eax
cmp eax, dword [ebx + 0x19d]
jge 0x47f086
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x50]
push eax
mov ecx, 0x47f6b4
mov edx, 0x2b20
mov eax, ebx
call fcn.0047a89c
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x58], edx
mov byte [ebp - 0x54], 0
lea edx, [ebp - 0x58]
xor ecx, ecx
call fcn.0040a218
movzx eax, byte [0x47f6d4]
or al, byte [ebx + 0x2b0]
mov byte [ebx + 0x2b0], al
jmp 0x47f0cb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x5c]
push eax
mov ecx, 0x47f6e0
mov edx, 0x2b1f
mov eax, ebx
call fcn.0047a89c
mov eax, dword [ebp - 0x5c]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
lea edx, [ebp - 0x58]
xor ecx, ecx
pop eax
call fcn.0040a218
movzx eax, byte [0x47f6fc]
or al, byte [ebx + 0x2b0]
mov byte [ebx + 0x2b0], al
mov eax, dword [ebx + 0x178]
mov edx, dword [ebx + 0x17c]
sub eax, dword [ebx + 0x188]
sbb edx, dword [ebx + 0x18c]
cmp edx, 0
jne 0x47f0eb
cmp eax, 0
je 0x47f102
movzx eax, byte [0x47f700]
or al, byte [ebx + 0x2b0]
mov byte [ebx + 0x2b0], al
jmp 0x47f115
movzx eax, byte [0x47f704]
or al, byte [ebx + 0x2b0]
mov byte [ebx + 0x2b0], al
cmp word [ebx + 0x2a5], 0
je 0x47f18c
mov byte [ebx + 0x2af], 0
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x2b0]
push eax
lea eax, [ebx + 0x2af]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebx + 0x2a7]
call dword [ebx + 0x2a3]
movzx eax, byte [ebx + 0x2af]
sub al, 1
jb 0x47f17a
je 0x47f171
dec al
je 0x47f168
dec al
jne 0x47f183
mov dword [ebp - 0x10], 2
jmp 0x47f1ab
mov dword [ebp - 0x10], 7
jmp 0x47f1ab
mov dword [ebp - 0x10], 1
jmp 0x47f1ab
mov dword [ebp - 0x10], 1
jmp 0x47f1ab
mov dword [ebp - 0x10], 1
jmp 0x47f1ab
push 0x133
push 0x47f708
mov eax, dword [ebp - 8]
call fcn.00404ca0
push eax
mov eax, dword [ebx + 0x47]
push eax
call sub.user32.dll_MessageBoxA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x47f1b7
cmp dword [ebp - 0x10], 2
jne 0x47f1cf
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
cmp dword [ebp - 0x10], 7
jne 0x47f1e9
xor eax, eax
mov dword [ebx + 0x28d], eax
mov byte [ebx + 0x29a], 1
jmp 0x47ee3d
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebx + 0x1b6], eax
cmp dword [ebx + 0x1b6], 0xffffffff
jne 0x47f230
push 1
mov ecx, 0x2b01
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
mov edx, 1
mov eax, ebx
call fcn.0047d36c
cmp dword [ebx + 0x1d7], 0
jle 0x47f273
mov eax, dword [ebx + 0x1d7]
cdq
cmp edx, dword [ebx + 0x18c]
jne 0x47f25e
cmp eax, dword [ebx + 0x188]
jae 0x47f273
jmp 0x47f260
jge 0x47f273
mov eax, dword [ebx + 0x1d7]
cdq
mov dword [ebx + 0x188], eax
mov dword [ebx + 0x18c], edx
cmp dword [ebx + 0x19d], 0
jne 0x47f2a6
mov eax, dword [ebx + 0x188]
mov edx, dword [ebx + 0x18c]
push edx
push eax
mov eax, dword [ebx + 0x1d3]
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 0x188], eax
mov dword [ebx + 0x18c], edx
mov eax, dword [ebx + 0x1db]
cdq
cmp edx, dword [ebx + 0x18c]
jne 0x47f2c3
cmp eax, dword [ebx + 0x188]
jbe 0x47f459
jmp 0x47f2c9
jle 0x47f459
mov eax, dword [ebx + 0x1b6]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
call fcn.00404ca0
push eax
call sub.kernel32.dll_DeleteFileA
mov dword [ebx + 0x1b6], 0xffffffff
cmp byte [ebx + 0x172], 0
je 0x47f314
push 1
mov ecx, 0x2b11
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
cmp word [ebx + 0x2a5], 0
je 0x47f3c5
lea eax, [ebp - 0x60]
push eax
mov ecx, 3
mov edx, 9
mov eax, dword [ebx + 0x174]
call fcn.00404d00
mov eax, dword [ebp - 0x60]
mov edx, 1
call fcn.004091ac
mov dword [ebp - 0x1c], eax
mov byte [ebx + 0x2af], 0
movzx eax, byte [0x47f710]
mov byte [ebx + 0x2b0], al
mov eax, dword [ebp - 4]
push eax
movzx eax, byte [ebx + 0x2b0]
push eax
lea eax, [ebx + 0x2af]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebx + 0x2a7]
call dword [ebx + 0x2a3]
movzx eax, byte [ebx + 0x2af]
sub al, 1
jb 0x47f3a1
je 0x47f3aa
dec al
je 0x47f3b3
dec al
jne 0x47f3bc
mov dword [ebp - 0x10], 2
jmp 0x47f409
mov dword [ebp - 0x10], 4
jmp 0x47f409
mov dword [ebp - 0x10], 4
jmp 0x47f409
mov dword [ebp - 0x10], 4
jmp 0x47f409
mov dword [ebp - 0x10], 4
jmp 0x47f409
lea eax, [ebp - 8]
push eax
mov ecx, 0x47f71c
mov edx, 0x2b18
mov eax, ebx
call fcn.0047a89c
push 0x15
lea edx, [ebp - 0x64]
mov eax, dword [0x4b0964]
mov eax, dword [eax]
call fcn.00465300
mov eax, dword [ebp - 0x64]
call fcn.00404ca0
push eax
mov eax, dword [ebp - 8]
call fcn.00404ca0
push eax
mov eax, dword [ebx + 0x47]
push eax
call sub.user32.dll_MessageBoxA_1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x47f427
push 1
mov ecx, 0x2afe
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
cmp dword [ebp - 0x10], 4
je 0x47f445
push 0
mov ecx, 0x2aff
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
xor eax, eax
mov dword [ebx + 0x28d], eax
mov byte [ebx + 0x29a], 1
jmp 0x47ee3d
cmp dword [ebp - 0x18], 3
je 0x47f4da
cmp dword [ebp - 0x18], 4
je 0x47f4da
lea eax, [ebp - 0x68]
push eax
lea edx, [ebp - 0x6c]
mov eax, dword [ebx + 0x19d]
add eax, 0x3e9
call fcn.00409034
mov eax, dword [ebp - 0x6c]
mov ecx, 3
mov edx, 2
call fcn.00404d00
mov ecx, dword [ebp - 0x68]
lea eax, [ebx + 0x174]
mov edx, 0x47f69c
call fcn.00404aec
mov eax, dword [ebx + 0x174]
call fcn.00404ca0
push eax
mov eax, dword [ebx + 0x194]
call fcn.00404ca0
push eax
call sub.kernel32.dll_SetVolumeLabelA
test eax, eax
jne 0x47f4da
push 1
mov ecx, 0x2afd
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
cmp dword [ebp + 8], 0
jle 0x47f53f
mov eax, dword [ebp + 8]
cdq
cmp edx, dword [ebx + 0x18c]
jne 0x47f4f6
cmp eax, dword [ebx + 0x188]
jbe 0x47f53f
jmp 0x47f4f8
jle 0x47f53f
mov edx, dword [ebx + 0x1c2]
mov eax, dword [ebx + 0x1b6]
call fcn.004096b4
mov eax, dword [ebx + 0x1b6]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebx + 0x1b6], 0xffffffff
xor eax, eax
mov dword [ebx + 0x28d], eax
mov byte [ebx + 0x29a], 1
inc dword [ebx + 0x19d]
jmp 0x47ee3d
mov eax, dword [ebx + 0x188]
mov esi, eax
mov eax, dword [ebp - 0xc]
cdq
cmp edx, dword [ebx + 0x18c]
jne 0x47f55d
cmp eax, dword [ebx + 0x188]
jae 0x47f562
jmp 0x47f55f
jge 0x47f562
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
mov ecx, esi
mov eax, dword [ebx + 0x1b6]
call fcn.0040958c
mov dword [ebp - 0x10], eax
cmp word [ebx + 0x23e], 0
je 0x47f59b
cmp byte [ebx + 0x1d2], 0
je 0x47f59b
push 0
push esi
mov cl, 1
mov edx, ebx
mov eax, dword [ebx + 0x240]
call dword [ebx + 0x23c]
cmp dword [ebp - 0x10], 0xffffffff
jne 0x47f5b9
push 1
mov ecx, 0x2b02
mov dl, 1
mov eax, dword [0x478498]
call fcn.0047d7d0
call fcn.004041ec
mov eax, dword [ebp - 0x10]
add dword [ebx + 0x28d], eax
mov eax, dword [ebx + 0x188]
mov edx, dword [ebx + 0x18c]
push edx
push eax
mov eax, esi
cdq
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
mov dword [ebx + 0x188], eax
mov dword [ebx + 0x18c], edx
cmp esi, dword [ebp - 0xc]
je 0x47f64e
mov edx, dword [ebx + 0x1c2]
mov eax, dword [ebx + 0x1b6]
call fcn.004096b4
mov eax, dword [ebx + 0x1b6]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
call sub.kernel32.dll_CloseHandle_1
mov dword [ebx + 0x1b6], 0xffffffff
mov dword [ebx + 0x188], 0
mov dword [ebx + 0x18c], 0
xor eax, eax
mov dword [ebx + 0x28d], eax
inc dword [ebx + 0x19d]
mov byte [ebx + 0x29a], 1
add dword [ebp - 0x14], esi
sub dword [ebp - 0xc], esi
jmp 0x47ee3d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47f68a
lea eax, [ebp - 0x6c]
mov edx, 5
call fcn.00404804
lea eax, [ebp - 0x50]
mov edx, 0xa
call fcn.00404804
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404804
ret