Function at 0x104be09
Capabilities:
Delete file

Disassembly:
mov eax, 0x107fc48
call fcn.01002b15
sub esp, 0x474
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], ebx
call dword [sym.imp.mmcbase.DLL_public:_void___thiscall_mmcerror::SC::constructor_long_int_]
mov eax, dword [ebx + 0x178]
mov edi, dword [eax + 0x90]
cmp edi, esi
jg 0x104be5f
push 0x8000ffff
lea ecx, [ebp - 0x24]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
mov edx, dword [eax]
mov ecx, dword [ebp + 8]
mov dword [ecx], edx
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov eax, ecx
jmp 0x104c208
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 0x3c]
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push eax
call fcn.010481a0
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const]
test al, al
je 0x104bea5
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
jmp 0x104c208
push 0x1084450
lea ecx, [ebp - 0x30]
call sub.MFC42u.DLL_CString::CString_4
cmp byte [ebp + 0x14], 0
mov dword [ebp - 4], esi
mov dword [ebp - 0x34], 0x108444c
jne 0x104bec9
mov dword [ebp - 0x34], 0x1084448
mov eax, dword [ebx + 0x178]
mov ecx, dword [eax]
and dword [ebp - 0x2c], 0
and dword [ebp - 0x1c], 0
xor esi, esi
inc esi
push eax
mov dword [ebp - 0x28], esi
call dword [ecx + 0x14]
cmp eax, esi
je 0x104befc
mov eax, dword [ebx + 0x178]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
cmp eax, 4
jne 0x104c0a7
lea eax, [edi*8 + 4]
push eax
mov dword [ebp - 0x28], edi
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp + 0x14], eax
test eax, eax
mov byte [ebp - 4], 1
je 0x104bf35
push 0x10482b0
push 0x10482a4
push edi
lea esi, [eax + 4]
push 8
push esi
mov dword [eax], edi
call fcn.010040b4
mov dword [ebp - 0x18], esi
jmp 0x104bf39
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
and byte [ebp - 4], 0
test eax, eax
mov dword [ebp - 0x2c], eax
je 0x104bf5a
mov eax, edi
shl eax, 2
push eax
call sub.MFC42u.DLL_operatornew
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
jne 0x104bf6d
push 0x8007000e
lea ecx, [ebp - 0x24]
call dword [sym.imp.mmcbase.DLL_public:_class_mmcerror::SC____thiscall_mmcerror::SC::operator_long_int_]
jmp 0x104c241
mov eax, dword [ebx + 0x178]
mov ecx, dword [eax + 0x48]
call fcn.01002c57
mov esi, eax
push 0x8000ffff
push esi
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x38], esi
call fcn.01002b92
mov ecx, dword [eax]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 4]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x20], eax
call dword [sym.imp.mmcbase.DLL_public:_bool___thiscall_mmcerror::SC::operator_bool_void_const]
test al, al
jne 0x104c241
test esi, esi
jne 0x104bfb3
xor eax, eax
jmp 0x104bfb6
mov eax, dword [esi + 0x20]
push dword [ebp - 0x1c]
push edi
push 0x1211
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x104c241
and dword [ebp + 0x14], 0
test edi, edi
jle 0x104c033
mov ebx, dword [ebp - 0x18]
jmp 0x104bfde
mov esi, dword [ebp - 0x38]
lea eax, [ebp - 0x480]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x70], 0xa
push 0x120b
push dword [esi + 0x20]
mov dword [ebp - 0x60], 0x208
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x104c241
push dword [ebp - 0x68]
mov esi, dword [ebp - 0x58]
mov ecx, ebx
call sub.MFC42u.DLL_CString::operator_1
shl esi, 0xf
sar esi, 0x1f
inc dword [ebp + 0x14]
mov dword [ebx + 4], esi
add ebx, 8
cmp dword [ebp + 0x14], edi
jl 0x104bfdb
xor ebx, ebx
test edi, edi
jle 0x104c089
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
cmp dword [eax + 4], 0
jne 0x104c084
movzx esi, byte [ebp + 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x14]
push esi
push eax
push dword [ebp - 0x10]
call fcn.0104a8d7
test al, al
je 0x104c227
lea eax, [edi - 1]
cmp ebx, eax
jge 0x104c084
mov ecx, dword [ebp - 0x14]
push esi
push dword [ebp - 0x34]
push dword [ebp - 0x10]
call fcn.0104a8d7
test al, al
je 0x104c227
inc ebx
cmp ebx, edi
jl 0x104c039
movzx eax, byte [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x10]
call fcn.0104a8d7
test al, al
mov ebx, dword [ebp - 0x14]
je 0x104c22a
lea ecx, [ebp + 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebx + 0x178]
mov esi, dword [eax + 0x48]
and dword [ebp - 0x18], 0
cmp byte [ebp + 0x18], 0
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], esi
je 0x104c0d0
mov dword [ebp - 0x18], 2
push dword [ebp - 0x18]
push 0xffffffffffffffff
jmp 0x104c1a7
xor edi, edi
cmp dword [ebp - 0x28], edi
jle 0x104c18b
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x104c11e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + edi*4]
cmp dword [ecx + eax*8 + 4], 0
jne 0x104c181
push eax
push dword [ebp + 0x18]
lea eax, [ebp - 0x38]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::GetItemText
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 3
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x38]
jmp 0x104c13d
push edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x40]
push eax
mov ecx, esi
call sub.MFC42u.DLL_CListCtrl::GetItemText
push eax
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 4
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::CString
movzx esi, byte [ebp + 0x10]
push esi
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.0104a8d7
test al, al
je 0x104c219
mov eax, dword [ebp - 0x28]
dec eax
cmp edi, eax
jge 0x104c17e
push esi
push dword [ebp - 0x34]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.0104a8d7
test al, al
je 0x104c219
mov esi, dword [ebp - 0x14]
inc edi
cmp edi, dword [ebp - 0x28]
jl 0x104c0e5
movzx eax, byte [ebp + 0x10]
push eax
push dword [ebp - 0x30]
mov ecx, ebx
push dword [ebp - 0x10]
call fcn.0104a8d7
test al, al
je 0x104c219
push dword [ebp - 0x18]
push dword [ebp + 0x18]
mov ecx, esi
call fcn.010480a5
cmp eax, 0xffffffff
mov dword [ebp + 0x18], eax
jne 0x104c0da
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x104c1d4
push 3
call fcn.0104a88c
cmp dword [ebp - 0x1c], 0
je 0x104c1e3
push dword [ebp - 0x1c]
call sub.MFC42u.DLL_operatordelete
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
mov dword [esi], eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
mov dword [esi + 4], eax
call sub.MFC42u.DLL_CString::CString
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
and byte [ebp - 4], 0
lea ecx, [ebp + 0x14]
call sub.MFC42u.DLL_CString::CString
jmp 0x104c22a
mov ebx, dword [ebp - 0x14]
cmp byte [ebp + 0x1c], 0
je 0x104c241
mov eax, dword [ebp + 0xc]
push dword [eax]
mov ecx, ebx
push dword [ebp - 0x10]
push 2
call fcn.01048131
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x104c1c6