Function at 0x41eef0
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x38]
sub esp, 0x38
push 0xffffffffffffffff
push 0x46843b
mov eax, dword fs:[0]
push eax
sub esp, 0x160
push ebx
push esi
push edi
mov eax, dword [0x48fac0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
push str.COLShadow::DoScan
push str._____s__IN
mov dword [ebp - 4], 1
call fcn.00409e70
add esp, 8
call fcn.00437eea
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x41ef56
push 0x80004005
call fcn.00401210
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp + 0x30], eax
push 0
mov byte [ebp - 4], 2
mov byte [ebp + 0x37], 0
call fcn.0044a53b
lea ecx, [ebp + 0x24]
mov dword [ebp + 0x28], edx
push ecx
lea edx, [ebp - 0x58]
push edx
mov dword [ebp + 0x24], eax
call fcn.0044a252
add esp, 0xc
test eax, eax
jne 0x41ef96
mov eax, dword [ebp - 0x58]
mov dword [ebp + 0x20], eax
jmp 0x41ef9d
mov dword [ebp + 0x20], 0xffffffff
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0xe8]
push edx
call fcn.0044a252
add esp, 8
test eax, eax
jne 0x41efbf
mov eax, dword [ebp - 0xe4]
mov dword [ebp + 0x2c], eax
jmp 0x41efc6
mov dword [ebp + 0x2c], 0xffffffff
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0xa0]
push edx
call fcn.0044a252
add esp, 8
test eax, eax
jne 0x41efe5
mov ebx, dword [ebp - 0x98]
jmp 0x41efe8
or ebx, 0xffffffff
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x34]
push ecx
call fcn.0044a252
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 0x28]
lea edx, [ebp + 0x24]
mov edi, eax
push edx
lea eax, [ebp - 0x7c]
push eax
call fcn.0044a252
add esp, 0x10
test eax, eax
jne 0x41f01c
mov esi, dword [ebp - 0x6c]
add esi, 1
jmp 0x41f01e
xor esi, esi
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0xc4]
push edx
call fcn.0044a252
add esp, 8
test eax, eax
jne 0x41f042
mov eax, dword [ebp - 0xb0]
add eax, 0x76c
jmp 0x41f044
xor eax, eax
mov ecx, dword [ebp + 0x20]
mov edx, dword [ebp + 0x2c]
push ecx
push edx
push ebx
push edi
push esi
push eax
lea eax, [ebp + 0x30]
push str._d__d__d__d__d__d.eml
push eax
call fcn.0041a040
mov esi, dword [0x4910b8]
lea ecx, [ebp - 0x168]
add esp, 0x20
mov dword [ebp - 0x16c], ecx
call dword [0x490f8c]
push eax
push esi
lea ecx, [ebp - 0x16c]
call fcn.004184e0
mov eax, dword [ebp - 0x16c]
lea edx, [ebp + 0x30]
push edx
push eax
lea ecx, [ebp + 0x2c]
mov ebx, 3
push ecx
mov byte [ebp - 4], bl
call fcn.00419c70
add esp, 0xc
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 4
call fcn.0040baf0
mov eax, dword [ebp + 0x2c]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f0d4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x168]
cmp eax, ecx
mov byte [ebp - 4], 2
je 0x41f0f1
push eax
call fcn.00449eca
add esp, 4
mov esi, dword [ebp + 0x30]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x41f110
push 0
lea ecx, [ebp + 0x30]
call fcn.00408660
mov esi, dword [ebp + 0x30]
push esi
push str.____COLShadow::DoScan____Try_to_save_temp_email_file__s
mov byte [ebp - 4], 5
call fcn.004137e0
add esp, 8
push ebx
push 0x400
lea ecx, [ebp]
call fcn.00443c49
mov edi, eax
lea edx, [ebp + 0x10]
push edx
mov byte [ebp - 4], 6
call dword [sym.imp.OLEAUT32.dll_VariantClear]
push edi
lea eax, [ebp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopyInd]
test eax, eax
jge 0x41f155
push eax
call fcn.00436540
lea ecx, [ebp + 0x10]
push ecx
push ecx
mov ecx, esp
mov dword [ebp + 0x2c], esp
push esi
mov byte [ebp - 4], 7
call fcn.00418930
mov ecx, dword [ebp + 0x48]
call fcn.0041b410
mov edi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea edx, [ebp + 0x10]
push edx
mov ebx, eax
call edi
lea eax, [ebp]
push eax
mov byte [ebp - 4], 5
call edi
test ebx, ebx
jge 0x41f1a5
push ebx
push esi
push str.____COLShadow::DoScan____Failed_to_save_temp_email_file__s_with_hr:0x_x
call fcn.004137e0
add esp, 0xc
mov byte [ebp - 4], 2
jmp 0x41f2ac
mov ecx, dword [0x49121c]
movzx edx, byte [0x491218]
push ecx
push edx
push str.____COLShadow::DoScan____bEnableTmufe___d__bTmufeSecurityLevel___d
mov dword [ebp - 4], 2
call fcn.00409e70
mov ecx, dword [0x4910ac]
add esp, 0xc
test ecx, ecx
je 0x41f276
mov edi, dword [ebp + 0x58]
mov edx, dword [0x49121c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
push edi
push edx
movzx edx, byte [0x491218]
push edx
push 0
push esi
call eax
cmp byte [0x4910fe], 0
je 0x41f203
mov eax, dword [0x491210]
jmp 0x41f210
mov ecx, dword [edi + 0xfb8]
mov eax, dword [ecx*4 + 0x491198]
sub eax, 0
je 0x41f22f
sub eax, 1
je 0x41f227
sub eax, 2
jne 0x41f22f
fld qword [0x48e9f0]
jmp 0x41f235
fld qword [0x48ea00]
jmp 0x41f235
fld qword [0x48e9f8]
fcom qword [edi + 8]
fnstsw ax
test ah, 0x41
jp 0x41f246
mov ecx, 1
jmp 0x41f248
xor ecx, ecx
mov eax, dword [edi]
cmp eax, 2
push eax
sete bl
sub esp, 0x10
fstp qword [esp + 8]
or bl, cl
fld qword [edi + 8]
fstp qword [esp]
push str.____COLShadow::DoScan____Processed_Result:_dfTotalScore___.3f__dfThreshold___.3f__eMailType___d
call fcn.00409e70
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41f2af
push str.xxx_COLShadow::DoScan____m_piSFAgent_is_NULL__skip_checking_message_
call fcn.00409e70
mov bl, byte [ebp + 0x37]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x41f2af
mov bl, byte [ebp + 0x37]
test esi, esi
jne 0x41f2b7
xor eax, eax
jmp 0x41f2d1
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x41f2c0
sub eax, edx
js 0x41f351
cmp eax, dword [esi - 8]
jg 0x41f351
push str.COLShadow::DoScan
mov dword [esi - 0xc], eax
push str._____s__OUT
mov byte [eax + esi], 0
call fcn.00409e70
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41f30f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x48]
test eax, eax
mov byte [ebp - 4], 0
je 0x41f322
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp + 0x4c]
test eax, eax
mov dword [ebp - 4], 0xffffffff
je 0x41f338
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add ebp, 0x38
mov esp, ebp
pop ebp
ret 0x30
push 0x80070057
call fcn.00401210
int3