Function at 0x40dc50
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x431268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
push ebx
push ebp
push esi
mov dword [esp + 0x1c], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x58]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x58]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x58]
push 0x5c
push ecx
call fcn.0041bd80
mov byte [eax + 1], 0
mov edi, str.CapLogcapsrc.jpg
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x58]
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 + 0x34]
call fcn.0041ab80
lea eax, [esp + 0x58]
push 0
push eax
lea ecx, [esp + 0x3c]
mov dword [esp + 0x16c], 0
call fcn.0041ac43
test eax, eax
je 0x40df69
mov ebx, 1
lea ecx, [esp + 0x34]
call fcn.0041ae63
lea ecx, [esp + 0x10]
mov ebp, eax
push ecx
lea ecx, [esp + 0x38]
call fcn.0041b05b
mov edx, dword [esp + 0x10]
push 0x43cb34
push edx
mov byte [esp + 0x16c], bl
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x40df3e
mov eax, dword [esp + 0x10]
push 0x43cb30
push eax
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x40df3e
mov ecx, dword [esp + 0x10]
push 0x441314
push ecx
call fcn.0041bda7
add esp, 8
test eax, eax
je 0x40df3e
lea edx, [esp + 0x30]
lea ecx, [esp + 0x34]
push edx
call fcn.0041afca
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 2
call fcn.004289df
lea ecx, [esp + 0x30]
mov byte [esp + 0x164], bl
call fcn.004288f2
push 0x43cb2c
lea ecx, [esp + 0x14]
call fcn.0042780b
push 0x43c4e8
lea ecx, [esp + 0x14]
mov esi, eax
call fcn.0042780b
test esi, esi
mov edi, eax
jle 0x40de60
test edi, edi
jle 0x40de60
cmp edi, esi
jle 0x40de60
lea eax, [esp + 0x18]
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00427771
lea ecx, [esp + 0x14]
push edi
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x16c], 3
call fcn.0042763c
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
mov byte [esp + 0x170], 4
call fcn.00428ad5
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x168], 5
call fcn.004289df
lea ecx, [esp + 0x24]
mov byte [esp + 0x164], 4
call fcn.004288f2
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 3
call fcn.004288f2
lea ecx, [esp + 0x18]
mov byte [esp + 0x164], bl
call fcn.004288f2
lea ecx, [esp + 0x34]
call fcn.0041b0ba
cmp eax, 0x400
jae 0x40def8
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x34]
push edx
call fcn.0041af32
mov esi, dword [eax]
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x168], 6
call fcn.0041af32
mov edi, dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
and al, 0xfe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x2c]
call fcn.004288f2
lea ecx, [esp + 0x1c]
mov byte [esp + 0x164], bl
call fcn.004288f2
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x38]
call fcn.0041af32
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x28]
call fcn.004288f2
test ebp, ebp
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x10]
je 0x40df64
jmp 0x40df4a
push ebx
push ecx
mov edx, esp
mov dword [esp + 0x58], esp
lea eax, [esp + 0x18]
push str..jpg
push eax
push edx
call fcn.00428b3b
push ebx
push ecx
mov ecx, esp
mov dword [esp + 0x64], esp
push ecx
lea ecx, [esp + 0x48]
mov byte [esp + 0x178], 7
call fcn.0041af32
mov ecx, dword [esp + 0x30]
mov byte [esp + 0x174], bl
call fcn.0040b3d0
test eax, eax
je 0x40df58
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x10]
call fcn.004288f2
test ebp, ebp
je 0x40df69
jmp 0x40dd04
mov byte [esp + 0x164], 0
lea ecx, [esp + 0x10]
call fcn.004288f2
lea ecx, [esp + 0x34]
mov dword [esp + 0x164], 0xffffffff
call fcn.0041abbd
mov ecx, dword [esp + 0x15c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x158
ret