Function at 0x406417
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 0x413348
stosb byte es:[edi], al
call fcn.0040487d
push dword [ebp + 8]
lea eax, [ebp - 0x48]
push eax
call fcn.0040de02
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 0x406743
mov eax, dword [ebp - 0x40]
sub eax, dword [ebp - 0x44]
sar eax, 2
cmp dword [ebp - 0x10], eax
jae 0x406743
push ecx
mov ecx, esp
push 0x413344
call fcn.0040487d
push dword [ebp - 0x10]
lea ecx, [ebp - 0x48]
call fcn.00406e7c
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.0040de02
add esp, 0xc
cmp dword [ebp - 0x1c], ebx
je 0x406733
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
and al, 0xfc
cmp eax, 0x10
jne 0x406733
lea ecx, [ebp - 0x20]
call fcn.00406e69
test eax, eax
ja 0x4064f3
lea ecx, [ebp - 0x20]
call fcn.00406ea9
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
cmp dword [ecx - 0xc], ebx
jl 0x406508
mov dword [ebp - 4], ecx
add ecx, 0xfffffff4
push ecx
call esi
jmp 0x40651b
mov ecx, dword [0x413050]
mov dword [ebp - 4], ecx
push dword [eax]
lea ecx, [ebp - 4]
call fcn.004049dd
lea ecx, [ebp - 0x20]
call fcn.00406e69
cmp eax, 1
ja 0x406530
lea ecx, [ebp - 0x20]
call fcn.00406ea9
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 4]
cmp dword [eax - 0xc], ebx
jl 0x406546
mov dword [ebp + 8], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x406559
mov eax, dword [0x413050]
mov dword [ebp + 8], eax
push dword [ecx + 4]
lea ecx, [ebp + 8]
call fcn.004049dd
lea ecx, [ebp - 0x20]
call fcn.00406e69
cmp eax, 2
ja 0x40656e
lea ecx, [ebp - 0x20]
call fcn.00406ea9
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 8]
cmp dword [eax - 0xc], ebx
jl 0x406584
mov dword [ebp - 0xc], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x406597
mov eax, dword [0x413050]
mov dword [ebp - 0xc], eax
push dword [ecx + 8]
lea ecx, [ebp - 0xc]
call fcn.004049dd
lea ecx, [ebp - 0x20]
call fcn.00406e69
cmp eax, 3
ja 0x4065ac
lea ecx, [ebp - 0x20]
call fcn.00406ea9
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0xc]
cmp dword [eax - 0xc], ebx
jl 0x4065c2
mov dword [ebp - 8], eax
add eax, 0xfffffff4
push eax
call esi
jmp 0x4065d5
mov eax, dword [0x413050]
mov dword [ebp - 8], eax
push dword [ecx + 0xc]
lea ecx, [ebp - 8]
call fcn.004049dd
lea ecx, [ebp - 4]
call fcn.004070f2
lea ecx, [ebp - 4]
call fcn.004070a5
lea eax, [ebp - 0x250]
push eax
push 0x12
push 0x40f8fc
call fcn.0040582c
push eax
push dword [ebp - 4]
call edi
add esp, 0x14
test eax, eax
jne 0x406620
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [0x413664]
push eax
call fcn.00409562
jmp 0x406713
lea eax, [ebp - 0x250]
push eax
push 0x10
push 0x40f91c
call fcn.0040582c
push eax
push dword [ebp - 4]
call edi
add esp, 0x14
test eax, eax
jne 0x40665b
push dword [ebp - 8]
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov ecx, dword [0x413664]
push eax
call fcn.00408385
jmp 0x406713
lea ecx, [ebp + 8]
call fcn.004070f2
lea ecx, [ebp + 8]
call fcn.004070a5
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp + 8]
push eax
call fcn.00406d3f
test al, al
je 0x406713
push ecx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.0040481e
lea ecx, [ebp - 0x5c]
call fcn.00409c91
push ecx
mov ecx, esp
push 0x41368c
call fcn.0040487d
lea ecx, [ebp - 0x5c]
call fcn.00409d07
test al, al
je 0x40670b
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 0x40670b
mov ecx, dword [0x413664]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x28]
push str._t_n
push eax
call fcn.00408cbe
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00406f2d
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00404a22
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x30]
call fcn.00404851
lea ecx, [ebp - 0x38]
call fcn.00404851
lea ecx, [ebp - 0x28]
call fcn.00404851
lea ecx, [ebp - 0x5c]
call fcn.00409cf9
lea ecx, [ebp - 8]
call fcn.00404851
lea ecx, [ebp - 0xc]
call fcn.00404851
lea ecx, [ebp + 8]
call fcn.00404851
lea ecx, [ebp - 4]
call fcn.00404851
lea ecx, [ebp - 0x20]
call fcn.00406e36
inc dword [ebp - 0x10]
jmp 0x406485
lea ecx, [ebp - 0x48]
call fcn.00406e36
pop edi
pop esi
pop ebx
leave
ret 4