Function at 0x406b91
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x2c], ecx
push ebx
call dword [sym.imp.MSVCRT.dll_time]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
mov eax, dword [eax + 0xc]
push 0x7c
mov dword [ebp - 0x24], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x24f]
mov byte [ebp - 0x250], bl
add esp, 4
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, esp
push 0x415348
stosb byte es:[edi], al
call fcn.0040485f
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.0040f54a
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov edi, dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 0xc
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x44], ebx
je 0x406ebd
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 2
cmp dword [ebp - 0x10], eax
jae 0x406ebd
push ecx
mov ecx, esp
push 0x415344
call fcn.0040485f
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.004075f6
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040f54a
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
je 0x406ead
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
and al, 0xfc
cmp eax, 0x10
jne 0x406ead
lea ecx, [ebp - 0x20]
call fcn.004075e3
test eax, eax
ja 0x406c6d
lea ecx, [ebp - 0x20]
call fcn.00407623
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jl 0x406c82
mov dword [ebp - 4], ecx
add ecx, 0xfffffff4
push ecx
call esi
jmp 0x406c95
mov ecx, dword [0x415050]
mov dword [ebp - 4], ecx
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004049bf
lea ecx, [ebp - 0x20]
call fcn.004075e3
cmp eax, 1
ja 0x406caa
lea ecx, [ebp - 0x20]
call fcn.00407623
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 4]
cmp dword [eax - 0xc], ebx
jl 0x406cc0
mov dword [ebp + 8], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x406cd3
mov eax, dword [0x415050]
mov dword [ebp + 8], eax
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.004049bf
lea ecx, [ebp - 0x20]
call fcn.004075e3
cmp eax, 2
ja 0x406ce8
lea ecx, [ebp - 0x20]
call fcn.00407623
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], ebx
jl 0x406cfe
mov dword [ebp - 0xc], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x406d11
mov eax, dword [0x415050]
mov dword [ebp - 0xc], eax
push dword [ecx + 8]
lea ecx, [ebp - 0xc]
call fcn.004049bf
lea ecx, [ebp - 0x20]
call fcn.004075e3
cmp eax, 3
ja 0x406d26
lea ecx, [ebp - 0x20]
call fcn.00407623
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
cmp dword [eax - 0xc], ebx
jl 0x406d3c
mov dword [ebp - 8], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x406d4f
mov eax, dword [0x415050]
mov dword [ebp - 8], eax
push dword [ecx + 0xc]
lea ecx, [ebp - 8]
call fcn.004049bf
lea ecx, [ebp - 4]
call fcn.0040786c
lea ecx, [ebp - 4]
call fcn.0040781f
lea eax, [ebp - 0x250]
push eax
push 0x12
push 0x4118fc
call fcn.0040580e
push eax
push dword [ebp - 4]
call edi
add esp, 0x14
test eax, eax
jne 0x406d9a
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [0x415664]
push eax
call fcn.00409cdc
jmp 0x406e8d
lea eax, [ebp - 0x250]
push eax
push 0x10
push 0x41191c
call fcn.0040580e
push eax
push dword [ebp - 4]
call edi
add esp, 0x14
test eax, eax
jne 0x406dd5
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [0x415664]
push eax
call fcn.00408aff
jmp 0x406e8d
lea ecx, [ebp + 8]
call fcn.0040786c
lea ecx, [ebp + 8]
call fcn.0040781f
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp + 8]
push eax
call fcn.004074b9
test al, al
je 0x406e8d
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00404800
lea ecx, [ebp - 0x5c]
call fcn.0040a40b
push ecx
mov ecx, esp
push 0x41568c
call fcn.0040485f
lea ecx, [ebp - 0x5c]
call fcn.0040a481
test al, al
je 0x406e85
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.MSVCRT.dll_localtime]
pop ecx
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0xc]
je 0x406e85
mov ecx, dword [0x415664]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push str._t_n
push eax
call fcn.00409438
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004076a7
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404a04
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
call fcn.00404833
lea ecx, [ebp - 0x38]
call fcn.00404833
lea ecx, [ebp - 0x28]
call fcn.00404833
lea ecx, [ebp - 0x5c]
call fcn.0040a473
lea ecx, [ebp - 8]
call fcn.00404833
lea ecx, [ebp - 0xc]
call fcn.00404833
lea ecx, [ebp + 8]
call fcn.00404833
lea ecx, [ebp - 4]
call fcn.00404833
lea ecx, [ebp - 0x20]
call fcn.004075b0
inc dword [ebp - 0x10]
jmp 0x406bff
lea ecx, [ebp - 0x48]
call fcn.004075b0
pop edi
pop esi
pop ebx
leave
ret 4