Function at 0x46ae9d
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x4b1a21
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x19c
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x1b8]
push edi
push 0x4d3e14
mov dword [esp + 0x3c], esi
call fcn.004991f0
xor ebx, ebx
cmp eax, ebx
je 0x46b269
push eax
call fcn.0047b825
mov ebp, dword [esp + 0x1c4]
add esp, 4
mov ecx, ebp
push eax
call fcn.00479e30
mov edi, eax
cmp edi, ebx
je 0x46b269
mov al, byte [esp + 0x13]
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x28], al
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x1bc]
lea edx, [esp + 0x28]
push ecx
push edx
push str._editattachments.html
mov ecx, esi
mov dword [esp + 0x1c0], ebx
call fcn.00470fc0
test al, al
je 0x46b25c
lea ecx, [esp + 0xa4]
push ecx
mov ecx, esi
call fcn.004997e0
lea ecx, [esp + 0x18]
call fcn.00489cd0
push ebx
push 1
lea edx, [esp + 0xac]
push 1
push edx
lea ecx, [esp + 0x28]
mov byte [esp + 0x1c4], 1
call fcn.00489d20
test al, al
jne 0x46af80
lea eax, [esp + 0xa4]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], bl
call fcn.00489d10
mov ecx, dword [esp + 0x2c]
push ecx
jmp 0x46b261
mov edx, dword [0x4d5f90]
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], edx
mov byte [esp + 0x1b4], 2
mov esi, dword [esp + 0x38]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x44]
push 0x64
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x34]
push edx
push eax
lea ecx, [esi + 0x44]
call fcn.00499870
test al, al
je 0x46b1eb
cmp byte [esp + 0x40], bl
je 0x46b1f6
lea ecx, [esp + 0x13]
push ebx
lea edx, [esp + 0x1c]
push ecx
lea eax, [esp + 0x48]
push edx
push eax
push ebp
mov ecx, esi
mov byte [esp + 0x27], bl
call fcn.00471310
test al, al
je 0x46b1eb
cmp byte [esp + 0x13], bl
jne 0x46af96
mov esi, str.DOATTACHMENTLINK
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x46b021
cmp cl, bl
je 0x46b01d
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x46b021
add eax, 2
add esi, 2
cmp cl, bl
jne 0x46affd
xor eax, eax
jmp 0x46b026
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x46b06b
mov ecx, edi
call fcn.00466520
push eax
mov ecx, ebp
call fcn.00479da0
push eax
lea eax, [esp + 0x1c]
push str._doattachment_id_scomposeid_d
push eax
call fcn.004a0e91
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00489f00
test al, al
je 0x46b1eb
jmp 0x46af96
mov esi, str.RETURNLINK
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x46b098
cmp cl, bl
je 0x46b094
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x46b098
add eax, 2
add esi, 2
cmp cl, bl
jne 0x46b074
xor eax, eax
jmp 0x46b09d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x46b0e2
mov ecx, edi
call fcn.00466520
push eax
mov ecx, ebp
call fcn.00479da0
push eax
lea eax, [esp + 0x1c]
push str._compose_id_scomposeid_d
push eax
call fcn.004a0e91
mov eax, dword [esp + 0x24]
add esp, 0x10
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00489f00
test al, al
je 0x46b1eb
jmp 0x46af96
mov esi, str.ATTACHMENTS
lea eax, [esp + 0x40]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x46b10f
cmp cl, bl
je 0x46b10b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x46b10f
add eax, 2
add esi, 2
cmp cl, bl
jne 0x46b0eb
xor eax, eax
jmp 0x46b114
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x46af96
mov ecx, edi
call fcn.00466900
test eax, eax
jne 0x46b144
push 4
push str.None
lea ecx, [esp + 0x20]
call fcn.00489f00
test al, al
je 0x46b1eb
jmp 0x46af96
mov ecx, edi
xor esi, esi
call fcn.00466900
test eax, eax
jle 0x46af96
mov ecx, edi
call fcn.00466900
dec eax
push esi
cmp esi, eax
mov ecx, edi
jl 0x46b18f
call fcn.004668c0
push eax
push esi
mov ecx, edi
call fcn.004668c0
push eax
mov ecx, edi
call fcn.00466520
push eax
mov ecx, ebp
call fcn.00479da0
push eax
lea eax, [esp + 0x24]
push str._a_href__editattachment_id_scomposeid_dname_s___s__a_
push eax
jmp 0x46b1b8
call fcn.004668c0
push eax
push esi
mov ecx, edi
call fcn.004668c0
push eax
mov ecx, edi
call fcn.00466520
push eax
mov ecx, ebp
call fcn.00479da0
push eax
lea ecx, [esp + 0x24]
push str._a_href__editattachment_id_scomposeid_dname_s___s__a__
push ecx
call fcn.004a0e91
mov eax, dword [esp + 0x2c]
add esp, 0x18
mov ecx, dword [eax - 8]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00489f00
test al, al
je 0x46b1eb
mov ecx, edi
inc esi
call fcn.00466900
cmp esi, eax
jl 0x46b155
jmp 0x46af96
lea ecx, [esp + 0x18]
call fcn.00489e00
jmp 0x46b22d
lea ecx, [esp + 0x18]
call fcn.00489e00
mov esi, dword [esp + 0x1bc]
push str.html
push 1
lea ecx, [esp + 0xac]
push 0xc8
push ecx
mov ecx, esi
call fcn.00495a70
test al, al
jne 0x46b23b
push ebx
mov ecx, esi
call fcn.00497450
lea edx, [esp + 0xa4]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1b4], 1
call fcn.004a3625
lea ecx, [esp + 0x18]
mov byte [esp + 0x1b4], bl
call fcn.00489d10
mov eax, dword [esp + 0x2c]
push eax
call fcn.004a2a3d
add esp, 4
mov ecx, dword [esp + 0x1ac]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a8
ret 8