Function at 0x4052f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41cacc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x130
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push str._Y__m__d
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00414be0
mov ecx, eax
call fcn.00414c22
lea edx, [esp + 0x3c]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x3c]
push 0x104
push edx
rep stosd dword es:[edi], eax
push eax
mov dword [esp + 0x154], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp + 0x3c]
push 0x5c
push eax
call fcn.00409bf0
mov byte [eax + 1], 0
or ecx, 0xffffffff
mov edi, str.CapLog_
xor eax, eax
add esp, 8
lea edx, [esp + 0x3c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebp, dword [esp + 0x154]
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 + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.__________.
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
lea edx, [esp + 0x3c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
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 + 0x20]
call fcn.0041547a
lea eax, [esp + 0x20]
lea edx, [esp + 0x3c]
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push edx
mov byte [esp + 0x154], 1
call fcn.00415d8a
call fcn.00405560
mov eax, dword [esp + 0x30]
add esp, 8
xor esi, esi
test eax, eax
jle 0x405514
mov edi, dword [esp + 0x150]
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.004052c0
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push ebp
mov byte [esp + 0x154], 2
call fcn.00415d8a
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x158], 3
call fcn.00415a91
mov byte [esp + 0x154], 2
call fcn.004059b0
add esp, 0xc
test eax, eax
je 0x405503
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00415a91
lea ecx, [esp + 0x18]
push ecx
call fcn.00405900
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push edx
push eax
call fcn.004094be
add esp, 0x10
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.00415d1c
test bl, bl
je 0x405503
push 0
push 0x424694
push ebp
push str.CapLoghistory.ini
call fcn.00406f10
mov eax, dword [esp + 0x20]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 1
call fcn.00415d1c
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x405434
jmp 0x405514
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 1
call fcn.00415d1c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call fcn.0041550d
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 0
call fcn.004154ad
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], 0xffffffff
call fcn.00415d1c
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret