Function at 0x412a30
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x431a32
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x148
push ebx
push esi
push edi
lea eax, [esp + 0x18]
push str._Y__m__d
lea ecx, [esp + 0x50]
push eax
push ecx
call fcn.00427d26
mov ecx, eax
call fcn.00427d68
lea edx, [esp + 0x50]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x50]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x168], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x50]
push 0x5c
push eax
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.CapLog_fileop_
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x50]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x50]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__________.txt
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.0042802e
lea eax, [esp + 0x38]
lea edx, [esp + 0x50]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push edx
mov byte [esp + 0x168], 1
call fcn.00428960
call fcn.004121d0
mov eax, dword [esp + 0x48]
add esp, 8
xor esi, esi
test eax, eax
jle 0x412ddc
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x40]
call fcn.0040b910
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x10]
push ecx
push str.date
push str.FILEOP
push edx
mov ecx, 0x441320
mov byte [esp + 0x16c], 2
call fcn.004161f0
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
mov byte [esp + 0x164], 3
call fcn.00428667
lea ecx, [esp + 0x2c]
push ecx
call fcn.00412590
mov edx, dword [esp + 0x18]
mov eax, dword [eax]
push edx
push eax
call fcn.0041bda7
add esp, 0x10
lea ecx, [esp + 0x28]
test eax, eax
setl bl
call fcn.004288f2
test bl, bl
je 0x412bf8
mov eax, dword [esp + 0xc]
push eax
call edi
test eax, eax
jne 0x412d89
lea ecx, [esp + 0xc]
lea edx, [esp + 0x24]
push ecx
push str.del.
push edx
call fcn.00428baf
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x10]
push eax
call fcn.0041c94d
add esp, 8
lea ecx, [esp + 0x24]
jmp 0x412d84
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00428667
lea eax, [esp + 0x34]
push eax
call fcn.00412590
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041bda7
add esp, 0x10
lea ecx, [esp + 0x30]
test eax, eax
setg bl
call fcn.004288f2
push ecx
test bl, bl
mov ecx, esp
je 0x412c9b
lea edx, [esp + 0x10]
mov dword [esp + 0x18], esp
push edx
call fcn.00428667
lea eax, [esp + 0x24]
push eax
call fcn.00412590
add esp, 8
mov eax, dword [eax]
mov ecx, 0x441320
push eax
push str.date
push str.FILEOP
mov byte [esp + 0x168], 4
call fcn.004160d0
lea ecx, [esp + 0x20]
mov byte [esp + 0x15c], 3
call fcn.004288f2
push 0
push 0x43b32c
push str.FILEOP
mov ecx, 0x441320
call fcn.004161a0
jmp 0x412ce6
lea edx, [esp + 0x10]
mov dword [esp + 0x18], esp
push edx
call fcn.00428667
lea eax, [esp + 0x38]
push eax
call fcn.00412590
add esp, 8
mov eax, dword [eax]
mov ecx, 0x441320
push eax
push str.date
push str.FILEOP
mov byte [esp + 0x168], 5
call fcn.004160d0
lea ecx, [esp + 0x34]
mov byte [esp + 0x15c], 3
call fcn.004288f2
mov ecx, dword [esp + 0x40]
xor edx, edx
dec ecx
lea eax, [esp + 0xc]
cmp esi, ecx
sete dl
push edx
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push eax
call fcn.00428667
call fcn.00412e30
add esp, 8
test eax, eax
je 0x412dba
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.00428667
lea eax, [esp + 0x30]
push eax
call fcn.00412590
mov ecx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push eax
call fcn.0041bda7
add esp, 0x10
lea ecx, [esp + 0x2c]
test eax, eax
setne bl
call fcn.004288f2
test bl, bl
je 0x412dba
mov edx, dword [esp + 0xc]
push edx
call edi
test eax, eax
jne 0x412d89
lea eax, [esp + 0xc]
lea ecx, [esp + 0x1c]
push eax
push str.del.
push ecx
call fcn.00428baf
mov eax, dword [eax]
mov edx, dword [esp + 0xc]
push eax
push edx
call fcn.0041c94d
add esp, 8
lea ecx, [esp + 0x1c]
call fcn.004288f2
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 2
call fcn.004288f2
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 1
call fcn.004288f2
mov eax, dword [esp + 0x40]
inc esi
cmp esi, eax
jl 0x412b42
jmp 0x412ddc
lea ecx, [esp + 0x10]
mov byte [esp + 0x15c], 2
call fcn.004288f2
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 1
call fcn.004288f2
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x40]
call fcn.004280c1
lea ecx, [esp + 0x38]
mov byte [esp + 0x15c], 0
call fcn.00428061
lea ecx, [esp + 0x18]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004288f2
mov ecx, dword [esp + 0x154]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x154
ret