Function at 0x405380
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x41cb3c
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.00414c50
mov ecx, eax
call fcn.00414c92
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.00409c60
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.004154ea
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.00415dfa
call fcn.004055f0
mov eax, dword [esp + 0x30]
add esp, 8
xor esi, esi
test eax, eax
jle 0x4055a4
mov edi, dword [esp + 0x150]
lea eax, [esp + 0x10]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00405350
push edi
push ecx
mov ecx, esp
mov dword [esp + 0x40], esp
push ebp
mov byte [esp + 0x154], 2
call fcn.00415dfa
push ecx
lea edx, [esp + 0x1c]
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
mov byte [esp + 0x158], 3
call fcn.00415b01
mov byte [esp + 0x154], 2
call fcn.00405a00
add esp, 0xc
test eax, eax
je 0x405593
push ecx
lea eax, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x20], esp
push eax
call fcn.00415b01
lea ecx, [esp + 0x18]
push ecx
call fcn.00405950
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push edx
push eax
call fcn.0040952e
add esp, 0x10
lea ecx, [esp + 0x14]
test eax, eax
setne bl
call fcn.00415d8c
test bl, bl
je 0x405593
push 0
push 0x4246cc
push ebp
push str.CapLoghistory.ini
call fcn.00406f80
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.00415d8c
mov eax, dword [esp + 0x28]
inc esi
cmp esi, eax
jl 0x4054c4
jmp 0x4055a4
lea ecx, [esp + 0x10]
mov byte [esp + 0x148], 1
call fcn.00415d8c
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x28]
call fcn.0041557d
lea ecx, [esp + 0x20]
mov byte [esp + 0x148], 0
call fcn.0041551d
lea ecx, [esp + 0x18]
mov dword [esp + 0x148], 0xffffffff
call fcn.00415d8c
mov ecx, dword [esp + 0x140]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x13c
ret