Function at 0x412120
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x498b68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
mov eax, dword [0x4bc410]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x50]
push ebx
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x184]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 4], ecx
je 0x412178
push ebx
push ebx
push str.ShareFile
mov ecx, eax
mov edx, dword [ecx]
push ebx
lea eax, [esp + 0x28]
push eax
call dword [edx + 0x14]
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x41217f
xor eax, eax
jmp 0x4123d0
mov eax, dword [eax + 0xc]
push ebp
mov ebp, dword [eax]
cmp ebp, eax
push esi
push edi
je 0x412337
nop
lea ecx, [esp + 0x18]
call fcn.004249b0
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ebx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push 1
push ebx
push ebx
push 0x4a2270
push ebx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x70], ebx
call dword [edx + 0x10]
mov eax, dword [esp + 0x1c]
mov edi, dword [eax]
cmp edi, eax
je 0x41221d
mov ecx, dword [edi + 8]
mov edx, dword [ecx]
lea eax, [esp + 0x28]
push eax
push 0x4a2260
call dword [edx + 0xc]
cmp byte [esp + 0x28], bl
je 0x412213
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x41220a
cmp cl, bl
je 0x412206
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x41220a
add eax, 2
add esi, 2
cmp cl, bl
jne 0x4121e6
xor eax, eax
jmp 0x41220f
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x412279
mov edi, dword [edi]
mov eax, dword [esp + 0x1c]
cmp edi, eax
jne 0x4121c6
mov ecx, dword [eax]
mov dword [eax], eax
mov eax, dword [esp + 0x1c]
mov dword [eax + 4], eax
mov eax, dword [esp + 0x1c]
cmp ecx, eax
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x20], ebx
je 0x412255
lea esp, [esp]
mov esi, dword [ecx]
push ecx
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x20]
add esp, 4
cmp esi, eax
mov ecx, esi
jne 0x412240
push eax
call sub.MFC71.DLL_operator_delete_1
mov eax, dword [esp + 0x28]
mov ebp, dword [ebp]
mov ecx, dword [eax + 0xc]
add esp, 4
cmp ebp, ecx
mov dword [esp + 0x1c], ebx
jne 0x412190
jmp 0x412337
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx]
mov esi, dword [edi + 8]
mov dword [ecx], ecx
mov ecx, dword [esp + 0x1c]
mov dword [ecx + 4], ecx
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x20], ebx
je 0x4122b5
nop
mov edi, dword [eax]
push eax
call sub.MFC71.DLL_operator_delete_1
mov ecx, dword [esp + 0x20]
add esp, 4
cmp edi, ecx
mov eax, edi
jne 0x4122a0
push ecx
call sub.MFC71.DLL_operator_delete_1
add esp, 4
cmp esi, ebx
mov dword [esp + 0x1c], ebx
je 0x412337
cmp dword [esp + 0x64], ebx
je 0x412304
mov ecx, dword [esi + 4]
cmp ecx, ebx
je 0x4122d9
push esi
call fcn.00431070
mov eax, dword [esp + 0x10]
add eax, 0x188
cmp eax, ebx
je 0x412337
cmp byte [eax], bl
je 0x412337
mov esi, dword [esp + 0x10]
mov ecx, dword [esi + 0x184]
push ebx
push eax
call fcn.00430300
mov ecx, esi
call fcn.0040b530
jmp 0x412337
mov edx, dword [esi]
push 0x4a112c
push str.DeleteFlag
mov ecx, esi
call dword [edx + 8]
mov eax, dword [esp + 0x10]
add eax, 0x188
cmp eax, ebx
je 0x412337
cmp byte [eax], bl
je 0x412337
push ebx
push eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x184]
call fcn.00430300
mov esi, dword [esp + 0x14]
cmp esi, ebx
je 0x4123cb
cmp dword [esp + 0x64], ebx
je 0x4123cb
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x160]
cmp ecx, ebx
mov eax, dword [esi + 0x230]
je 0x4123cb
push 0x4a1b50
push esi
push eax
call fcn.00403b00
cmp eax, ebx
je 0x4123cb
mov ecx, dword [edi + 0x160]
cmp ecx, ebx
je 0x412381
push esi
call fcn.00404670
add esi, 0x128
push esi
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
call esi
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, edi
call fcn.0040aa40
mov ecx, eax
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::operator_char_const_]
push eax
call esi
lea ecx, [esp + 0x14]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [edi + 0x160]
cmp ecx, ebx
je 0x4123cb
call fcn.00403b20
jmp 0x4123cd
xor eax, eax
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x44]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40]
pop ebx
xor ecx, esp
call fcn.00496ace
add esp, 0x4c
ret 8